--- 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)