Skip to content

Commit e4bbaf0

Browse files
committed
Updating iOS configure script to new ios-cmake location.
1 parent 6dc6d29 commit e4bbaf0

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

Build_iOS/CMakeLists.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ cmake_minimum_required(VERSION 2.6)
33

44
enable_testing()
55

6+
# Required because our iOS toolchain file doesn't quite set the compiler path correctly
7+
# Modifying it would require user's patching or us getting approval to release it ourselves.
8+
# Both are not simple options.
9+
set(CLANG_C_COMPILER /usr/bin/clang)
10+
set(CLANG_CXX_COMPILER /usr/bin/clang++)
11+
612
set(TOOLCHAIN_FILE "${CMAKE_CURRENT_SOURCE_DIR}/ios-cmake/toolchain/iOS.cmake")
713

814
set(SIM_BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}/build.i386" CACHE INTERNAL "")
@@ -25,6 +31,8 @@ execute_process(WORKING_DIRECTORY ${SIM_BINARY_DIR}
2531
-DCMAKE_TOOLCHAIN_FILE=${TOOLCHAIN_FILE}
2632
-DIOS_PLATFORM=SIMULATOR
2733
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
34+
-DCMAKE_C_COMPILER=${CLANG_C_COMPILER}
35+
-DCMAKE_CXX_COMPILER=${CLANG_CXX_COMPILER}
2836
"${SIM_SOURCE_DIR}"
2937
)
3038

@@ -35,6 +43,8 @@ execute_process(WORKING_DIRECTORY ${SIM64_BINARY_DIR}
3543
-DCMAKE_TOOLCHAIN_FILE=${TOOLCHAIN_FILE}
3644
-DIOS_PLATFORM=SIMULATOR64
3745
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
46+
-DCMAKE_C_COMPILER=${CLANG_C_COMPILER}
47+
-DCMAKE_CXX_COMPILER=${CLANG_CXX_COMPILER}
3848
"${SIM64_SOURCE_DIR}"
3949
)
4050

@@ -45,6 +55,8 @@ execute_process(WORKING_DIRECTORY ${ARM_BINARY_DIR}
4555
-DCMAKE_TOOLCHAIN_FILE=${TOOLCHAIN_FILE}
4656
-DIOS_PLATFORM=OS
4757
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
58+
-DCMAKE_C_COMPILER=${CLANG_C_COMPILER}
59+
-DCMAKE_CXX_COMPILER=${CLANG_CXX_COMPILER}
4860
"${ARM_SOURCE_DIR}"
4961
)
5062

Build_iOS/configure.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ mkdir openssl
2121
mv OpenSSL-for-iPhone/include openssl
2222
mv OpenSSL-for-iPhone/lib openssl
2323

24-
hg clone https://code.google.com/p/ios-cmake/
24+
git clone https://github.com/cristeab/ios-cmake.git
2525
mkdir build.ios
2626
pushd build.ios
2727
cmake .. -DCMAKE_BUILD_TYPE=Release
2828
make
2929
popd
3030
echo "===="
31-
echo "The final library is available in 'build.ios/libcasablanca.a'"
31+
echo "The final library is available in 'build.ios/libcpprest.a'"

0 commit comments

Comments
 (0)