hedgewars/CMakeLists.txt
branchcmake_pascal
changeset 8863 9774ad4fe170
parent 8855 879270f627e0
child 9224 bce8cf41d666
--- a/hedgewars/CMakeLists.txt	Tue Mar 26 18:03:15 2013 +0100
+++ b/hedgewars/CMakeLists.txt	Tue Apr 30 01:43:00 2013 +0200
@@ -127,6 +127,11 @@
         list(APPEND HW_LINK_LIBS SDLmain)
         add_flag_append(CMAKE_Pascal_FLAGS -Fl${LIBRARY_OUTPUT_PATH})
     endif()
+
+    #when sysroot is set, make sure that fpc picks it
+    if(CMAKE_OSX_SYSROOT)
+        set(add_flag_append "-XD${CMAKE_OSX_SYSROOT}")
+    endif(CMAKE_OSX_SYSROOT)
 endif(APPLE)
 
 if(FFMPEG_FOUND)