cmake_modules/CMakePascalInformation.cmake
branchcmake_pascal
changeset 8815 c28fcd8ec138
parent 8809 8ce66f1106f1
child 8821 e85ff6e298b5
equal deleted inserted replaced
8813:a932b10fc1d0 8815:c28fcd8ec138
     1 # This file sets the basic flags for the Pascal language in CMake.
     1 # This file sets the basic flags for the Pascal language in CMake.
     2 # It also loads the available platform file for the system-compiler
     2 # It also loads the available platform file for the system-compiler
     3 # if it exists.
     3 # if it exists.
     4 
     4 
     5 GET_FILENAME_COMPONENT(CMAKE_BASE_NAME ${CMAKE_Pascal_COMPILER} NAME_WE)
     5 get_filename_component(CMAKE_BASE_NAME ${CMAKE_Pascal_COMPILER} NAME_WE)
     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 should be included before the _INIT variables are
    10 # This should be included before the _INIT variables are
    11 # used to initialize the cache.  Since the rule variables
    11 # used to initialize the cache.  Since the rule variables
    12 # have if blocks on them, users can still define them here.
    12 # have if blocks on them, users can still define them here.
    13 # But, it should still be after the platform file so changes can
    13 # But, it should still be after the platform file so changes can
    14 # be made to those values.
    14 # be made to those values.
    15 
    15 
    16 IF(CMAKE_USER_MAKE_RULES_OVERRIDE)
    16 if(CMAKE_USER_MAKE_RULES_OVERRIDE)
    17    INCLUDE(${CMAKE_USER_MAKE_RULES_OVERRIDE})
    17    include(${CMAKE_USER_MAKE_RULES_OVERRIDE})
    18 ENDIF(CMAKE_USER_MAKE_RULES_OVERRIDE)
    18 endif(CMAKE_USER_MAKE_RULES_OVERRIDE)
    19 
    19 
    20 IF(CMAKE_USER_MAKE_RULES_OVERRIDE_Pascal)
    20 if(CMAKE_USER_MAKE_RULES_OVERRIDE_Pascal)
    21    INCLUDE(${CMAKE_USER_MAKE_RULES_OVERRIDE_Pascal})
    21    include(${CMAKE_USER_MAKE_RULES_OVERRIDE_Pascal})
    22 ENDIF(CMAKE_USER_MAKE_RULES_OVERRIDE_Pascal)
    22 endif(CMAKE_USER_MAKE_RULES_OVERRIDE_Pascal)
    23 
    23 
    24 # Create a set of shared library variable specific to Pascal
    24 # Create a set of shared library variable specific to Pascal
    25 # For 90% of the systems, these are the same flags as the C versions
    25 # For 90% of the systems, these are the same flags as the C versions
    26 # so if these are not set just copy the flags from the c version
    26 # so if these are not set just copy the flags from the c version
    27 #IF(NOT CMAKE_SHARED_LIBRARY_CREATE_Ada_FLAGS)
    27 #IF(NOT CMAKE_SHARED_LIBRARY_CREATE_Ada_FLAGS)
    28 #-dynamiclib -Wl,-headerpad_max_install_names for C
    28 #-dynamiclib -Wl,-headerpad_max_install_names for C
    29 #  SET(CMAKE_SHARED_LIBRARY_CREATE_Ada_FLAGS ${CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS})
    29 #  SET(CMAKE_SHARED_LIBRARY_CREATE_Ada_FLAGS ${CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS})
    30 #ENDIF(NOT CMAKE_SHARED_LIBRARY_CREATE_Ada_FLAGS)
    30 #ENDIF(NOT CMAKE_SHARED_LIBRARY_CREATE_Ada_FLAGS)
    31 
    31 
    32 IF(NOT CMAKE_SHARED_LIBRARY_Pascal_FLAGS)
    32 if(NOT CMAKE_SHARED_LIBRARY_Pascal_FLAGS)
    33   #another similarity, fpc: -fPIC  Same as -Cg
    33     #another similarity, fpc: -fPIC  Same as -Cg
    34   #(maybe required only for x86_64)
    34     #(maybe required only for x86_64)
    35   SET(CMAKE_SHARED_LIBRARY_Pascal_FLAGS ${CMAKE_SHARED_LIBRARY_C_FLAGS})
    35     set(CMAKE_SHARED_LIBRARY_Pascal_FLAGS ${CMAKE_SHARED_LIBRARY_C_FLAGS})
    36 ENDIF(NOT CMAKE_SHARED_LIBRARY_Pascal_FLAGS)
    36 endif(NOT CMAKE_SHARED_LIBRARY_Pascal_FLAGS)
    37 
    37 
    38 IF(NOT CMAKE_SHARED_LIBRARY_LINK_Pascal_FLAGS)
    38 if(NOT CMAKE_SHARED_LIBRARY_LINK_Pascal_FLAGS)
    39   SET(CMAKE_SHARED_LIBRARY_LINK_Pascal_FLAGS ${CMAKE_SHARED_LIBRARY_LINK_C_FLAGS})
    39     set(CMAKE_SHARED_LIBRARY_LINK_Pascal_FLAGS ${CMAKE_SHARED_LIBRARY_LINK_C_FLAGS})
    40 ENDIF(NOT CMAKE_SHARED_LIBRARY_LINK_Pascal_FLAGS)
    40 endif(NOT CMAKE_SHARED_LIBRARY_LINK_Pascal_FLAGS)
    41 
    41 
    42 #IF(NOT CMAKE_SHARED_LIBRARY_RUNTIME_Ada_FLAG)
    42 #IF(NOT CMAKE_SHARED_LIBRARY_RUNTIME_Ada_FLAG)
    43 #  SET(CMAKE_SHARED_LIBRARY_RUNTIME_Ada_FLAG ${CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG})
    43 #  SET(CMAKE_SHARED_LIBRARY_RUNTIME_Ada_FLAG ${CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG})
    44 #ENDIF(NOT CMAKE_SHARED_LIBRARY_RUNTIME_Ada_FLAG)
    44 #ENDIF(NOT CMAKE_SHARED_LIBRARY_RUNTIME_Ada_FLAG)
    45 
    45 
    46 #IF(NOT CMAKE_SHARED_LIBRARY_RUNTIME_Ada_FLAG_SEP)
    46 #IF(NOT CMAKE_SHARED_LIBRARY_RUNTIME_Ada_FLAG_SEP)
    47 #  SET(CMAKE_SHARED_LIBRARY_RUNTIME_Ada_FLAG_SEP ${CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG_SEP})
    47 #  SET(CMAKE_SHARED_LIBRARY_RUNTIME_Ada_FLAG_SEP ${CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG_SEP})
    48 #ENDIF(NOT CMAKE_SHARED_LIBRARY_RUNTIME_Ada_FLAG_SEP)
    48 #ENDIF(NOT CMAKE_SHARED_LIBRARY_RUNTIME_Ada_FLAG_SEP)
    49 
    49 
    50 if(NOT CMAKE_SHARED_LIBRARY_RPATH_LINK_Pascal_FLAG)
    50 if(NOT CMAKE_SHARED_LIBRARY_RPATH_LINK_Pascal_FLAG)
    51   set(CMAKE_SHARED_LIBRARY_RPATH_LINK_Pascal_FLAG ${CMAKE_SHARED_LIBRARY_RPATH_LINK_C_FLAG})
    51     set(CMAKE_SHARED_LIBRARY_RPATH_LINK_Pascal_FLAG ${CMAKE_SHARED_LIBRARY_RPATH_LINK_C_FLAG})
    52 endif(NOT CMAKE_SHARED_LIBRARY_RPATH_LINK_Pascal_FLAG)
    52 endif(NOT CMAKE_SHARED_LIBRARY_RPATH_LINK_Pascal_FLAG)
    53 
    53 
    54 # for most systems a module is the same as a shared library
    54 # for most systems a module is the same as a shared library
    55 # so unless the variable CMAKE_MODULE_EXISTS is set just
    55 # so unless the variable CMAKE_MODULE_EXISTS is set just
    56 # copy the values from the LIBRARY variables
    56 # copy the values from the LIBRARY variables
    57 if(NOT CMAKE_MODULE_EXISTS)
    57 if(NOT CMAKE_MODULE_EXISTS)
    58   set(CMAKE_SHARED_MODULE_Pascal_FLAGS ${CMAKE_SHARED_LIBRARY_Pascal_FLAGS})
    58     set(CMAKE_SHARED_MODULE_Pascal_FLAGS ${CMAKE_SHARED_LIBRARY_Pascal_FLAGS})
    59   set(CMAKE_SHARED_MODULE_CREATE_Pascal_FLAGS ${CMAKE_SHARED_LIBRARY_CREATE_Pascal_FLAGS})
    59     set(CMAKE_SHARED_MODULE_CREATE_Pascal_FLAGS ${CMAKE_SHARED_LIBRARY_CREATE_Pascal_FLAGS})
    60 endif()
    60 endif(NOT CMAKE_MODULE_EXISTS)
    61 
    61 
    62 # repeat for modules
    62 # repeat for modules
    63 #IF(NOT CMAKE_SHARED_MODULE_CREATE_Ada_FLAGS)
    63 #IF(NOT CMAKE_SHARED_MODULE_CREATE_Ada_FLAGS)
    64 #  SET(CMAKE_SHARED_MODULE_CREATE_Ada_FLAGS ${CMAKE_SHARED_MODULE_CREATE_C_FLAGS})
    64 #  SET(CMAKE_SHARED_MODULE_CREATE_Ada_FLAGS ${CMAKE_SHARED_MODULE_CREATE_C_FLAGS})
    65 #ENDIF(NOT CMAKE_SHARED_MODULE_CREATE_Ada_FLAGS)
    65 #ENDIF(NOT CMAKE_SHARED_MODULE_CREATE_Ada_FLAGS)
    74 
    74 
    75 #IF(NOT CMAKE_SHARED_MODULE_RUNTIME_Ada_FLAG_SEP)
    75 #IF(NOT CMAKE_SHARED_MODULE_RUNTIME_Ada_FLAG_SEP)
    76 #  SET(CMAKE_SHARED_MODULE_RUNTIME_Ada_FLAG_SEP ${CMAKE_SHARED_MODULE_RUNTIME_C_FLAG_SEP})
    76 #  SET(CMAKE_SHARED_MODULE_RUNTIME_Ada_FLAG_SEP ${CMAKE_SHARED_MODULE_RUNTIME_C_FLAG_SEP})
    77 #ENDIF(NOT CMAKE_SHARED_MODULE_RUNTIME_Ada_FLAG_SEP)
    77 #ENDIF(NOT CMAKE_SHARED_MODULE_RUNTIME_Ada_FLAG_SEP)
    78 
    78 
    79 IF(NOT CMAKE_INCLUDE_FLAG_Pascal)
    79 if(NOT CMAKE_INCLUDE_FLAG_Pascal)
    80   #amazing, fpc: -I<x>  Add <x> to include path
    80     #amazing, fpc: -I<x>  Add <x> to include path
    81   SET(CMAKE_INCLUDE_FLAG_Pascal ${CMAKE_INCLUDE_FLAG_C})
    81     set(CMAKE_INCLUDE_FLAG_Pascal ${CMAKE_INCLUDE_FLAG_C})
    82 ENDIF(NOT CMAKE_INCLUDE_FLAG_Pascal)
    82 endif(NOT CMAKE_INCLUDE_FLAG_Pascal)
    83 
    83 
    84 IF(NOT CMAKE_INCLUDE_FLAG_SEP_Pascal)
    84 if(NOT CMAKE_INCLUDE_FLAG_SEP_Pascal)
    85   SET(CMAKE_INCLUDE_FLAG_SEP_Pascal ${CMAKE_INCLUDE_FLAG_SEP_C})
    85     set(CMAKE_INCLUDE_FLAG_SEP_Pascal ${CMAKE_INCLUDE_FLAG_SEP_C})
    86 ENDIF(NOT CMAKE_INCLUDE_FLAG_SEP_Pascal)
    86 endif(NOT CMAKE_INCLUDE_FLAG_SEP_Pascal)
    87 
    87 
    88 # Copy C version of this flag which is normally determined in platform file.
    88 # Copy C version of this flag which is normally determined in platform file.
    89 IF(NOT CMAKE_SHARED_LIBRARY_SONAME_Pascal_FLAG)
    89 if(NOT CMAKE_SHARED_LIBRARY_SONAME_Pascal_FLAG)
    90   SET(CMAKE_SHARED_LIBRARY_SONAME_Pascal_FLAG ${CMAKE_SHARED_LIBRARY_SONAME_C_FLAG})
    90   set(CMAKE_SHARED_LIBRARY_SONAME_Pascal_FLAG ${CMAKE_SHARED_LIBRARY_SONAME_C_FLAG})
    91 ENDIF(NOT CMAKE_SHARED_LIBRARY_SONAME_Pascal_FLAG)
    91 endif(NOT CMAKE_SHARED_LIBRARY_SONAME_Pascal_FLAG)
    92 
    92 
    93 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.")
    93 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.")
    94 
    94 
    95 SET (CMAKE_Pascal_FLAGS "$ENV{FPFLAGS} ${CMAKE_Pascal_FLAGS_INIT}" CACHE STRING "Flags for Pascal compiler.")
    95 set(CMAKE_Pascal_FLAGS "$ENV{FPFLAGS} ${CMAKE_Pascal_FLAGS_INIT}" CACHE STRING "Flags for Pascal compiler.")
    96 
    96 
    97 INCLUDE(CMakeCommonLanguageInclude)
    97 INCLUDE(CMakeCommonLanguageInclude)
    98 
    98 
    99 # now define the following rule variables
    99 # now define the following rule variables
   100 
   100 
   121 
   121 
   122 # Static library tools
   122 # Static library tools
   123 # <CMAKE_AR>
   123 # <CMAKE_AR>
   124 # <CMAKE_RANLIB>
   124 # <CMAKE_RANLIB>
   125 
   125 
   126 if (NOT EXECUTABLE_OUTPUT_PATH)
   126 if(NOT EXECUTABLE_OUTPUT_PATH)
   127     set (EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR})
   127     set (EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR})
   128 endif (NOT EXECUTABLE_OUTPUT_PATH)
   128 endif(NOT EXECUTABLE_OUTPUT_PATH)
   129 
   129 
   130 # create an Ada shared library
   130 # create an Ada shared library
   131 IF(NOT CMAKE_Ada_CREATE_SHARED_LIBRARY)
   131 IF(NOT CMAKE_Ada_CREATE_SHARED_LIBRARY)
   132     SET(CMAKE_Ada_CREATE_SHARED_LIBRARY
   132     SET(CMAKE_Ada_CREATE_SHARED_LIBRARY
   133     "<CMAKE_Ada_COMPILER> <CMAKE_SHARED_LIBRARY_Ada_FLAGS> <LANGUAGE_COMPILE_FLAGS> <LINK_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_Ada_FLAGS> <CMAKE_SHARED_LIBRARY_SONAME_Ada_FLAG><TARGET_SONAME> -o <TARGET> <OBJECTS> <LINK_LIBRARIES>"
   133     "<CMAKE_Ada_COMPILER> <CMAKE_SHARED_LIBRARY_Ada_FLAGS> <LANGUAGE_COMPILE_FLAGS> <LINK_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_Ada_FLAGS> <CMAKE_SHARED_LIBRARY_SONAME_Ada_FLAG><TARGET_SONAME> -o <TARGET> <OBJECTS> <LINK_LIBRARIES>"
   145       "<CMAKE_AR> cr <TARGET> <LINK_FLAGS> <OBJECTS> "
   145       "<CMAKE_AR> cr <TARGET> <LINK_FLAGS> <OBJECTS> "
   146       "<CMAKE_RANLIB> <TARGET> ")
   146       "<CMAKE_RANLIB> <TARGET> ")
   147 ENDIF(NOT CMAKE_Ada_CREATE_STATIC_LIBRARY)
   147 ENDIF(NOT CMAKE_Ada_CREATE_STATIC_LIBRARY)
   148 
   148 
   149 # compile a Pascal file into an object file
   149 # compile a Pascal file into an object file
   150 IF(NOT CMAKE_Pascal_COMPILE_OBJECT)
   150 if(NOT CMAKE_Pascal_COMPILE_OBJECT)
   151   if(UNIX)
   151     if(UNIX)
   152     #when you have multiple ld installation make sure you get the one bundled with the system C compiler
   152         #when you have multiple ld installation make sure you get the one bundled with the system C compiler
   153     INCLUDE(Platform/${CMAKE_SYSTEM_NAME}-GNU-C.cmake OPTIONAL)
   153         include(Platform/${CMAKE_SYSTEM_NAME}-GNU-C.cmake OPTIONAL)
   154     if(CMAKE_C_COMPILER)
   154         if(CMAKE_C_COMPILER)
   155       get_filename_component(CMAKE_C_COMPILER_DIR ${CMAKE_C_COMPILER} PATH)
   155             get_filename_component(CMAKE_C_COMPILER_DIR ${CMAKE_C_COMPILER} PATH)
   156       set(CMAKE_Pascal_UNIX_FLAGS "-FD${CMAKE_C_COMPILER_DIR}")
   156             set(CMAKE_Pascal_UNIX_FLAGS "-FD${CMAKE_C_COMPILER_DIR}")
   157     endif(CMAKE_C_COMPILER)
   157         endif(CMAKE_C_COMPILER)
   158     if(APPLE)
   158         if(APPLE)
   159       #add user framework directory
   159             #add user framework directory
   160       set(CMAKE_Pascal_UNIX_FLAGS "-Ff~/Library/Frameworks ${CMAKE_Pascal_UNIX_FLAGS}")
   160             set(CMAKE_Pascal_UNIX_FLAGS "-Ff~/Library/Frameworks ${CMAKE_Pascal_UNIX_FLAGS}")
   161       if(CMAKE_OSX_SYSROOT)
   161             #when sysroot is set, make sure that fpc picks it
   162         set(CMAKE_Pascal_UNIX_FLAGS "-XD${CMAKE_OSX_SYSROOT} ${CMAKE_Pascal_UNIX_FLAGS}")
   162             if(CMAKE_OSX_SYSROOT)
   163       endif(CMAKE_OSX_SYSROOT)
   163                 set(CMAKE_Pascal_UNIX_FLAGS "-XD${CMAKE_OSX_SYSROOT} ${CMAKE_Pascal_UNIX_FLAGS}")
   164     endif(APPLE)
   164             endif(CMAKE_OSX_SYSROOT)
   165   endif(UNIX)
   165         endif(APPLE)
   166     SET(CMAKE_Pascal_COMPILE_OBJECT
   166     endif(UNIX)
   167       "<CMAKE_Pascal_COMPILER> -Cn -FE${EXECUTABLE_OUTPUT_PATH} -FU${CMAKE_CURRENT_BINARY_DIR}/<OBJECT_DIR> -Fi${CMAKE_CURRENT_BINARY_DIR}  ${CMAKE_Pascal_UNIX_FLAGS} <FLAGS> <SOURCE>")
   167 
   168 ENDIF(NOT CMAKE_Pascal_COMPILE_OBJECT)
   168     set(CMAKE_Pascal_COMPILE_OBJECT
       
   169         "<CMAKE_Pascal_COMPILER> -Cn -FE${EXECUTABLE_OUTPUT_PATH} -FU${CMAKE_CURRENT_BINARY_DIR}/<OBJECT_DIR> -Fi${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_Pascal_UNIX_FLAGS} <FLAGS> <SOURCE>")
       
   170 endif(NOT CMAKE_Pascal_COMPILE_OBJECT)
   169 
   171 
   170 # link Pascal objects in a single executable
   172 # link Pascal objects in a single executable
   171 IF(NOT CMAKE_Pascal_LINK_EXECUTABLE)
   173 if(NOT CMAKE_Pascal_LINK_EXECUTABLE)
   172   if(WIN32)
   174     if(WIN32)
   173     set(CMAKE_Pascal_LINK_EXECUTABLE "${EXECUTABLE_OUTPUT_PATH}/ppas.bat")
   175         set(CMAKE_Pascal_LINK_EXECUTABLE "${EXECUTABLE_OUTPUT_PATH}/ppas.bat")
   174   else(WIN32)
   176     else(WIN32)
   175     set(CMAKE_Pascal_LINK_EXECUTABLE "${EXECUTABLE_OUTPUT_PATH}/ppas.sh")
   177         set(CMAKE_Pascal_LINK_EXECUTABLE "${EXECUTABLE_OUTPUT_PATH}/ppas.sh")
   176   endif(WIN32)
   178     endif(WIN32)
   177 #  SET(CMAKE_Pascal_LINK_EXECUTABLE "${CMAKE_Pascal_COMPILER} <CMAKE_Pascal_LINK_FLAGS> <LINK_FLAGS> <TARGET_BASE>.adb -cargs <FLAGS> -largs <LINK_LIBRARIES>")
   179 # other expandable variables here are<CMAKE_Pascal_LINK_FLAGS> <LINK_FLAGS> <TARGET_BASE> <FLAGS> <LINK_LIBRARIES>
   178 ENDIF(NOT CMAKE_Pascal_LINK_EXECUTABLE)
   180 endif(NOT CMAKE_Pascal_LINK_EXECUTABLE)
   179 
   181 
   180 IF(CMAKE_Ada_STANDARD_LIBRARIES_INIT)
   182 if(CMAKE_Pascal_STANDARD_LIBRARIES_INIT)
   181   SET(CMAKE_Ada_STANDARD_LIBRARIES "${CMAKE_Ada_STANDARD_LIBRARIES_INIT}"
   183     set(CMAKE_Pascal_STANDARD_LIBRARIES "${CMAKE_Pascal_STANDARD_LIBRARIES_INIT}"
   182     CACHE STRING "Libraries linked by default with all Ada applications.")
   184     CACHE STRING "Libraries linked by default (usually handled internally).")
   183   MARK_AS_ADVANCED(CMAKE_Ada_STANDARD_LIBRARIES)
   185     MARK_AS_ADVANCED(CMAKE_Pascal_STANDARD_LIBRARIES)
   184 ENDIF(CMAKE_Ada_STANDARD_LIBRARIES_INIT)
   186 endif(CMAKE_Pascal_STANDARD_LIBRARIES_INIT)
   185 
   187 
   186 IF(NOT CMAKE_NOT_USING_CONFIG_FLAGS)
   188 if(NOT CMAKE_NOT_USING_CONFIG_FLAGS)
   187   SET (CMAKE_Ada_FLAGS_DEBUG "${CMAKE_Ada_FLAGS_DEBUG_INIT}" CACHE STRING
   189   SET (CMAKE_Pascal_FLAGS_DEBUG "${CMAKE_Ada_FLAGS_DEBUG_INIT}" CACHE STRING
   188      "Flags used by the compiler during debug builds.")
   190      "Flags used by the compiler during debug builds.")
   189   SET (CMAKE_Ada_FLAGS_MINSIZEREL "${CMAKE_Ada_FLAGS_MINSIZEREL_INIT}" CACHE STRING
   191   SET (CMAKE_Pascal_FLAGS_MINSIZEREL "${CMAKE_Ada_FLAGS_MINSIZEREL_INIT}" CACHE STRING
   190      "Flags used by the compiler during release minsize builds.")
   192      "Flags used by the compiler during release minsize builds.")
   191   SET (CMAKE_Ada_FLAGS_RELEASE "${CMAKE_Ada_FLAGS_RELEASE_INIT}" CACHE STRING
   193   SET (CMAKE_Pascal_FLAGS_RELEASE "${CMAKE_Ada_FLAGS_RELEASE_INIT}" CACHE STRING
   192      "Flags used by the compiler during release builds (/MD /Ob1 /Oi /Ot /Oy /Gs will produce slightly less optimized but smaller files).")
   194      "Flags used by the compiler during release builds (/MD /Ob1 /Oi /Ot /Oy /Gs will produce slightly less optimized but smaller files).")
   193   SET (CMAKE_Ada_FLAGS_RELWITHDEBINFO "${CMAKE_Ada_FLAGS_RELWITHDEBINFO_INIT}" CACHE STRING
   195   SET (CMAKE_Pascal_FLAGS_RELWITHDEBINFO "${CMAKE_Ada_FLAGS_RELWITHDEBINFO_INIT}" CACHE STRING
   194      "Flags used by the compiler during Release with Debug Info builds.")
   196      "Flags used by the compiler during Release with Debug Info builds.")
   195 ENDIF(NOT CMAKE_NOT_USING_CONFIG_FLAGS)
   197 endif(NOT CMAKE_NOT_USING_CONFIG_FLAGS)
   196 
   198 
   197 MARK_AS_ADVANCED(
   199 mark_as_advanced(CMAKE_Pascal_FLAGS CMAKE_Pascal_FLAGS_DEBUG CMAKE_Pascal_FLAGS_MINSIZEREL
   198 CMAKE_Pascal_FLAGS
   200                  CMAKE_Pascal_FLAGS_RELEASE CMAKE_Pascal_FLAGS_RELWITHDEBINFO)
   199 CMAKE_Pascal_FLAGS_DEBUG
   201 set(CMAKE_Pascal_INFORMATION_LOADED 1)
   200 CMAKE_Pascal_FLAGS_MINSIZEREL
   202 
   201 CMAKE_Pascal_FLAGS_RELEASE
       
   202 CMAKE_Pascal_FLAGS_RELWITHDEBINFO
       
   203 )
       
   204 SET(CMAKE_Pascal_INFORMATION_LOADED 1)
       
   205