and wrap the last variable so that the regex will never fail
authorkoda
Sun, 13 Oct 2013 23:04:56 +0200
changeset 9535 08be603491c7
parent 9533 db77654c3565
child 9537 1d72831311f6
and wrap the last variable so that the regex will never fail
cmake_modules/CMakePascalInformation.cmake
--- a/cmake_modules/CMakePascalInformation.cmake	Sun Oct 13 14:40:14 2013 -0400
+++ b/cmake_modules/CMakePascalInformation.cmake	Sun Oct 13 23:04:56 2013 +0200
@@ -72,7 +72,7 @@
 endif(NOT CMAKE_MODULE_EXISTS)
 
 # repeat for modules
-if(NOT CMAKE_SHARED_MODULE_CREATE_Pascal_FLAGS)
+if(NOT CMAKE_SHARED_MODULE_CREATE_Pascal_FLAGS AND CMAKE_SHARED_MODULE_CREATE_C_FLAGS)
 # ? (linux) / -bundle -Wl,-headerpad_max_install_names (darwin)
     string(REGEX REPLACE "-Wl," "-k" CMAKE_SHARED_MODULE_CREATE_Pascal_FLAGS ${CMAKE_SHARED_MODULE_CREATE_C_FLAGS})
 endif(NOT CMAKE_SHARED_MODULE_CREATE_Pascal_FLAGS)