48 string(REGEX REPLACE "-Wl," "-k" CMAKE_SHARED_LIBRARY_LINK_Pascal_FLAGS ${CMAKE_SHARED_LIBRARY_LINK_C_FLAGS}) |
48 string(REGEX REPLACE "-Wl," "-k" CMAKE_SHARED_LIBRARY_LINK_Pascal_FLAGS ${CMAKE_SHARED_LIBRARY_LINK_C_FLAGS}) |
49 endif() |
49 endif() |
50 |
50 |
51 if(NOT CMAKE_SHARED_LIBRARY_RUNTIME_Pascal_FLAG) |
51 if(NOT CMAKE_SHARED_LIBRARY_RUNTIME_Pascal_FLAG) |
52 #-Wl,-rpath, |
52 #-Wl,-rpath, |
53 string(REGEX REPLACE "-Wl," "-k" CMAKE_SHARED_LIBRARY_RUNTIME_Pascal_FLAG ${CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG}) |
53 set(CMAKE_SHARED_LIBRARY_RUNTIME_Pascal_FLAG "-k-rpath") |
54 string(REGEX REPLACE "," "" CMAKE_SHARED_LIBRARY_RUNTIME_Pascal_FLAG ${CMAKE_SHARED_LIBRARY_RUNTIME_Pascal_FLAG}) |
|
55 endif(NOT CMAKE_SHARED_LIBRARY_RUNTIME_Pascal_FLAG) |
54 endif(NOT CMAKE_SHARED_LIBRARY_RUNTIME_Pascal_FLAG) |
56 |
55 |
57 if(NOT CMAKE_SHARED_LIBRARY_RUNTIME_Pascal_FLAG_SEP) |
56 if(NOT CMAKE_SHARED_LIBRARY_RUNTIME_Pascal_FLAG_SEP) |
58 set(CMAKE_SHARED_LIBRARY_RUNTIME_Pascal_FLAG_SEP ${CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG_SEP}) |
57 set(CMAKE_SHARED_LIBRARY_RUNTIME_Pascal_FLAG_SEP ${CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG_SEP}) |
59 endif(NOT CMAKE_SHARED_LIBRARY_RUNTIME_Pascal_FLAG_SEP) |
58 endif(NOT CMAKE_SHARED_LIBRARY_RUNTIME_Pascal_FLAG_SEP) |
60 |
59 |
61 if(NOT CMAKE_SHARED_LIBRARY_RPATH_LINK_Pascal_FLAG) |
60 if(NOT CMAKE_SHARED_LIBRARY_RPATH_LINK_Pascal_FLAG) |
62 #-Wl,-rpath-link, |
61 #-Wl,-rpath-link, |
63 string(REGEX REPLACE "-Wl," "-k" CMAKE_SHARED_LIBRARY_RPATH_LINK_Pascal_FLAG ${CMAKE_SHARED_LIBRARY_RPATH_LINK_C_FLAG}) |
62 set(CMAKE_SHARED_LIBRARY_RUNTIME_Pascal_FLAG "-k-rpath-link") |
64 endif(NOT CMAKE_SHARED_LIBRARY_RPATH_LINK_Pascal_FLAG) |
63 endif(NOT CMAKE_SHARED_LIBRARY_RPATH_LINK_Pascal_FLAG) |
65 |
64 |
66 # for most systems a module is the same as a shared library |
65 # for most systems a module is the same as a shared library |
67 # so unless the variable CMAKE_MODULE_EXISTS is set just |
66 # so unless the variable CMAKE_MODULE_EXISTS is set just |
68 # copy the values from the LIBRARY variables |
67 # copy the values from the LIBRARY variables |
97 set(CMAKE_INCLUDE_FLAG_SEP_Pascal ${CMAKE_INCLUDE_FLAG_SEP_C}) |
96 set(CMAKE_INCLUDE_FLAG_SEP_Pascal ${CMAKE_INCLUDE_FLAG_SEP_C}) |
98 endif(NOT CMAKE_INCLUDE_FLAG_SEP_Pascal) |
97 endif(NOT CMAKE_INCLUDE_FLAG_SEP_Pascal) |
99 |
98 |
100 # Copy C version of this flag which is normally determined in platform file. |
99 # Copy C version of this flag which is normally determined in platform file. |
101 if(NOT CMAKE_SHARED_LIBRARY_SONAME_Pascal_FLAG) |
100 if(NOT CMAKE_SHARED_LIBRARY_SONAME_Pascal_FLAG) |
102 string(REGEX REPLACE "-Wl," "-k" CMAKE_SHARED_LIBRARY_SONAME_Pascal_FLAG ${CMAKE_SHARED_LIBRARY_SONAME_C_FLAG}) |
101 set(CMAKE_SHARED_LIBRARY_SONAME_Pascal_FLAG ${CMAKE_SHARED_LIBRARY_SONAME_C_FLAG}) |
103 endif(NOT CMAKE_SHARED_LIBRARY_SONAME_Pascal_FLAG) |
102 endif(NOT CMAKE_SHARED_LIBRARY_SONAME_Pascal_FLAG) |
104 |
103 |
105 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.") |
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.") |
106 |
105 |
107 set(CMAKE_Pascal_FLAGS "$ENV{FPFLAGS} ${CMAKE_Pascal_FLAGS_INIT} ${CMAKE_Pascal_FLAGS}" CACHE STRING "Flags for Pascal compiler.") |
106 set(CMAKE_Pascal_FLAGS "$ENV{FPFLAGS} ${CMAKE_Pascal_FLAGS_INIT} ${CMAKE_Pascal_FLAGS}" CACHE STRING "Flags for Pascal compiler.") |