allow fpc to search through the user directory when linking frameworks
authorkoda
Sun, 29 May 2011 23:58:28 +0200
changeset 5223 5730238e7ee6
parent 5222 0922b9d816af
child 5224 6e8fbbfb0de5
allow fpc to search through the user directory when linking frameworks
CMakeLists.txt
--- a/CMakeLists.txt	Sun May 29 23:21:59 2011 +0200
+++ b/CMakeLists.txt	Sun May 29 23:58:28 2011 +0200
@@ -108,6 +108,8 @@
 		set(CMAKE_OSX_SYSROOT "/Developer/SDKs/MacOSX${sdk_version}.sdk/")
 	endif()
 
+	#add user framework directory
+	set(pascal_compiler_flags_cmn "-Ff~/Library/Frameworks" ${pascal_compiler_flags_cmn})
 	#set deployment target
 	set(pascal_compiler_flags_cmn "-k-macosx_version_min" "-k${minimum_macosx_version}" "-XR${CMAKE_OSX_SYSROOT}" ${pascal_compiler_flags_cmn})
 	#link with liblua.a (which requires readline)