cmake_modules/CMakePascalInformation.cmake
changeset 9413 37fcb9a796e6
parent 9348 4ec6eff176a5
child 9415 276f6d7d9e2e
equal deleted inserted replaced
9411:d95ac9992529 9413:37fcb9a796e6
     6 set(CMAKE_SYSTEM_AND_Pascal_COMPILER_INFO_FILE
     6 set(CMAKE_SYSTEM_AND_Pascal_COMPILER_INFO_FILE
     7     ${CMAKE_ROOT}/Modules/Platform/${CMAKE_SYSTEM_NAME}-${CMAKE_BASE_NAME}.cmake)
     7     ${CMAKE_ROOT}/Modules/Platform/${CMAKE_SYSTEM_NAME}-${CMAKE_BASE_NAME}.cmake)
     8 include(Platform/${CMAKE_SYSTEM_NAME}-${CMAKE_BASE_NAME} OPTIONAL)
     8 include(Platform/${CMAKE_SYSTEM_NAME}-${CMAKE_BASE_NAME} OPTIONAL)
     9 
     9 
    10 # This section should actually be in Platform/${CMAKE_SYSTME_NAME}-fpc.cmake
    10 # This section should actually be in Platform/${CMAKE_SYSTME_NAME}-fpc.cmake
    11 set(CMAKE_Pascal_FLAGS_INIT "-l- -v0ewn")
       
    12 set(CMAKE_Pascal_FLAGS_DEBUG_INIT "-g -gl -gp -gh")
    11 set(CMAKE_Pascal_FLAGS_DEBUG_INIT "-g -gl -gp -gh")
    13 set(CMAKE_Pascal_FLAGS_MINSIZEREL_INIT "-Os -dNDEBUG")
    12 set(CMAKE_Pascal_FLAGS_MINSIZEREL_INIT "-Os -dNDEBUG")
    14 set(CMAKE_Pascal_FLAGS_RELEASE_INIT "-O3 -dNDEBUG")
    13 set(CMAKE_Pascal_FLAGS_RELEASE_INIT "-O3 -dNDEBUG")
    15 set(CMAKE_Pascal_FLAGS_RELWITHDEBINFO_INIT "-O2 -g -gl -gp")
    14 set(CMAKE_Pascal_FLAGS_RELWITHDEBINFO_INIT "-O2 -g -gl -gp")
    16 
    15 
   101     set(CMAKE_SHARED_LIBRARY_SONAME_Pascal_FLAG ${CMAKE_SHARED_LIBRARY_SONAME_C_FLAG})
   100     set(CMAKE_SHARED_LIBRARY_SONAME_Pascal_FLAG ${CMAKE_SHARED_LIBRARY_SONAME_C_FLAG})
   102 endif(NOT CMAKE_SHARED_LIBRARY_SONAME_Pascal_FLAG)
   101 endif(NOT CMAKE_SHARED_LIBRARY_SONAME_Pascal_FLAG)
   103 
   102 
   104 set(CMAKE_VERBOSE_MAKEFILE FALSE CACHE BOOL "If this value is on, makefiles will be generated without the .SILENT directive, and all commands will be echoed to the console during the make.  This is useful for debugging only. With Visual Studio IDE projects all commands are done without /nologo.")
   103 set(CMAKE_VERBOSE_MAKEFILE FALSE CACHE BOOL "If this value is on, makefiles will be generated without the .SILENT directive, and all commands will be echoed to the console during the make.  This is useful for debugging only. With Visual Studio IDE projects all commands are done without /nologo.")
   105 
   104 
   106 set(CMAKE_Pascal_FLAGS "$ENV{FPFLAGS} ${CMAKE_Pascal_FLAGS_INIT} ${CMAKE_Pascal_FLAGS}" CACHE STRING "Flags for Pascal compiler." FORCE)
   105 #set(CMAKE_Pascal_FLAGS "$ENV{FPFLAGS} ${CMAKE_Pascal_FLAGS_INIT} ${CMAKE_Pascal_FLAGS}" CACHE STRING "Flags for Pascal compiler." FORCE)
   107 
   106 
   108 include(CMakeCommonLanguageInclude)
   107 include(CMakeCommonLanguageInclude)
   109 
   108 
   110 # now define the following rule variables
   109 # now define the following rule variables
   111 
   110