hedgewars/CMakeLists.txt
branchcmake_pascal
changeset 8863 9774ad4fe170
parent 8855 879270f627e0
child 9224 bce8cf41d666
equal deleted inserted replaced
8859:bead90828a94 8863:9774ad4fe170
   125     if(NOT BUILD_ENGINE_LIBRARY)
   125     if(NOT BUILD_ENGINE_LIBRARY)
   126         add_subdirectory(sdlmain)
   126         add_subdirectory(sdlmain)
   127         list(APPEND HW_LINK_LIBS SDLmain)
   127         list(APPEND HW_LINK_LIBS SDLmain)
   128         add_flag_append(CMAKE_Pascal_FLAGS -Fl${LIBRARY_OUTPUT_PATH})
   128         add_flag_append(CMAKE_Pascal_FLAGS -Fl${LIBRARY_OUTPUT_PATH})
   129     endif()
   129     endif()
       
   130 
       
   131     #when sysroot is set, make sure that fpc picks it
       
   132     if(CMAKE_OSX_SYSROOT)
       
   133         set(add_flag_append "-XD${CMAKE_OSX_SYSROOT}")
       
   134     endif(CMAKE_OSX_SYSROOT)
   130 endif(APPLE)
   135 endif(APPLE)
   131 
   136 
   132 if(FFMPEG_FOUND)
   137 if(FFMPEG_FOUND)
   133     add_subdirectory(avwrapper)
   138     add_subdirectory(avwrapper)
   134     list(APPEND HW_LINK_LIBS avwrapper)
   139     list(APPEND HW_LINK_LIBS avwrapper)