cmake_modules/CMakePascalInformation.cmake
branchcmake_pascal
changeset 8829 6940e86a7df6
parent 8823 65b430b6cd68
child 8831 06562cd68897
equal deleted inserted replaced
8827:f53dfd8e0432 8829:6940e86a7df6
   147 # create an Ada shared module just copy the shared library rule
   147 # create an Ada shared module just copy the shared library rule
   148 IF(NOT CMAKE_Ada_CREATE_SHARED_MODULE)
   148 IF(NOT CMAKE_Ada_CREATE_SHARED_MODULE)
   149   SET(CMAKE_Ada_CREATE_SHARED_MODULE ${CMAKE_Ada_CREATE_SHARED_LIBRARY})
   149   SET(CMAKE_Ada_CREATE_SHARED_MODULE ${CMAKE_Ada_CREATE_SHARED_LIBRARY})
   150 ENDIF(NOT CMAKE_Ada_CREATE_SHARED_MODULE)
   150 ENDIF(NOT CMAKE_Ada_CREATE_SHARED_MODULE)
   151 
   151 
   152 # create an Ada static library
   152 # create an Pascal static library (unsupported)
   153 IF(NOT CMAKE_Ada_CREATE_STATIC_LIBRARY)
   153 IF(NOT CMAKE_Pascal_CREATE_STATIC_LIBRARY)
   154   SET(CMAKE_Ada_CREATE_STATIC_LIBRARY
   154   SET(CMAKE_Pascal_CREATE_STATIC_LIBRARY
   155       "<CMAKE_AR> cr <TARGET> <LINK_FLAGS> <OBJECTS> "
   155       "echo STATIC LIBRARIES ARE NOT SUPPORTED" "exit")
   156       "<CMAKE_RANLIB> <TARGET> ")
   156 ENDIF(NOT CMAKE_Pascal_CREATE_STATIC_LIBRARY)
   157 ENDIF(NOT CMAKE_Ada_CREATE_STATIC_LIBRARY)
       
   158 
   157 
   159 # compile a Pascal file into an object file
   158 # compile a Pascal file into an object file
   160 if(NOT CMAKE_Pascal_COMPILE_OBJECT)
   159 if(NOT CMAKE_Pascal_COMPILE_OBJECT)
   161     if(UNIX)
   160     if(UNIX)
   162         #when you have multiple ld installation make sure you get the one bundled with the system C compiler
   161         #when you have multiple ld installation make sure you get the one bundled with the system C compiler