mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 21:20:19 +00:00
710b3615fe
It's unclear why the build fails if we don't add the sample app files as well. [Dirk Hohndel: refactored the patches] Signed-off-by: Tomaz Canabrava <tomaz.canabrava@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
20 lines
681 B
Text
20 lines
681 B
Text
INCLUDE(CMakeForceCompiler)
|
|
|
|
SET (CMAKE_CROSSCOMPILING TRUE)
|
|
SET (CMAKE_SYSTEM_NAME "Darwin")
|
|
SET (CMAKE_SYSTEM_PROCESSOR "i386")
|
|
SET (CMAKE_OSX_SYSROOT "$ENV{PLATFORM_DIR}")
|
|
|
|
SET (CMAKE_C_COMPILER $ENV{CC})
|
|
SET (CMAKE_CXX_COMPILER $ENV{CXX})
|
|
|
|
SET (CMAKE_FIND_ROOT_PATH "$ENV{SDK_DIR}" "$ENV{PLATFORM_DIR}")
|
|
SET (CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
|
SET (CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
|
SET (CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
|
|
|
|
MESSAGE (STATUS "PLATFORM_DIR = $ENV{PLATFORM_DIR}")
|
|
MESSAGE (STATUS "SDK_DIR = $ENV{SDK_DIR}")
|
|
MESSAGE (STATUS "CC = $ENV{CC}")
|
|
MESSAGE (STATUS "CXX = $ENV{CXX}")
|
|
MESSAGE (STATUS "LD = $ENV{LD}")
|