set the correct framework search path for freepascal on darwin, targetting future cmake releases
authorkoda
Thu, 10 Oct 2013 23:33:22 +0200
changeset 9515 9af6176fcd8f
parent 9513 8cebd1870b2c
child 9517 217eacb69395
set the correct framework search path for freepascal on darwin, targetting future cmake releases
cmake_modules/CMakePascalInformation.cmake
--- a/cmake_modules/CMakePascalInformation.cmake	Wed Oct 09 01:18:34 2013 +0200
+++ b/cmake_modules/CMakePascalInformation.cmake	Thu Oct 10 23:33:22 2013 +0200
@@ -99,6 +99,11 @@
     set(CMAKE_INCLUDE_FLAG_SEP_Pascal ${CMAKE_INCLUDE_FLAG_SEP_C})
 endif(NOT CMAKE_INCLUDE_FLAG_SEP_Pascal)
 
+if(NOT CMAKE_Pascal_FRAMEWORK_SEARCH_FLAG)
+    #however -F won't work, -Ff is Pascal equivalent
+    set(CMAKE_Pascal_FRAMEWORK_SEARCH_FLAG "-Ff")
+endif(NOT CMAKE_Pascal_FRAMEWORK_SEARCH_FLAG)
+
 # Copy C version of this flag which is normally determined in platform file.
 if(NOT CMAKE_SHARED_LIBRARY_SONAME_Pascal_FLAG)
 #-soname (linux) / -install-name (dawin)