CMakeLists.txt
changeset 7109 af3a43a46f21
parent 7099 c0e403f618aa
child 7112 38c5d56c4d6e
equal deleted inserted replaced
7107:1982e702ed2f 7109:af3a43a46f21
   118 
   118 
   119 	#add user framework directory
   119 	#add user framework directory
   120 	set(pascal_compiler_flags_cmn "-Ff~/Library/Frameworks" ${pascal_compiler_flags_cmn})
   120 	set(pascal_compiler_flags_cmn "-Ff~/Library/Frameworks" ${pascal_compiler_flags_cmn})
   121 	#set deployment target
   121 	#set deployment target
   122 	set(pascal_compiler_flags_cmn "-k-macosx_version_min" "-k${minimum_macosx_version}" "-XR${CMAKE_OSX_SYSROOT}" ${pascal_compiler_flags_cmn})
   122 	set(pascal_compiler_flags_cmn "-k-macosx_version_min" "-k${minimum_macosx_version}" "-XR${CMAKE_OSX_SYSROOT}" ${pascal_compiler_flags_cmn})
   123 	#link with libsdlmain.a (when building an executable)
       
   124 	if(NOT BUILD_ENGINE_LIBRARY)
       
   125 		set(pascal_compiler_flags_cmn "-k${CMAKE_BINARY_DIR}/bin/libSDLmain.a" ${pascal_compiler_flags_cmn})
       
   126 	endif()
       
   127 
   123 
   128 	message(STATUS "Build system: Mac OS X ${current_macosx_version} with GCC:${CMAKE_C_COMPILER}")
   124 	message(STATUS "Build system: Mac OS X ${current_macosx_version} with GCC:${CMAKE_C_COMPILER}")
   129 	message(STATUS "Target system: Mac OS X ${minimum_macosx_version} for architecture(s):${CMAKE_OSX_ARCHITECTURES}")
   125 	message(STATUS "Target system: Mac OS X ${minimum_macosx_version} for architecture(s):${CMAKE_OSX_ARCHITECTURES}")
   130 endif(APPLE)
   126 endif(APPLE)
   131 
   127