aboutsummaryrefslogtreecommitdiffstats
path: root/packaging/ios/iPhoneSimulatorCMakeToolchain
blob: 6c428d2d61a32ed88883aab297ff12b9fbc2cf90 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++")

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}")