Skip to content

Commit

Permalink
Update ios.toolchain.cmake
Browse files Browse the repository at this point in the history
Fixed double outputs if manually specifying CMAKE_OSX_SYSROOT
  • Loading branch information
leetal authored Oct 22, 2018
1 parent 525b062 commit c812557
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ios.toolchain.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,6 @@ if (NOT DEFINED CMAKE_OSX_SYSROOT OR (NOT CMAKE_OSX_SYSROOT STREQUAL CMAKE_OSX_S
OUTPUT_VARIABLE CMAKE_OSX_SYSROOT
ERROR_QUIET
OUTPUT_STRIP_TRAILING_WHITESPACE)
elseif(DEFINED CMAKE_OSX_SYSROOT)
message(STATUS "Using manually set SDK path: ${CMAKE_OSX_SYSROOT} for platform: ${IOS_PLATFORM}")
endif()
if (NOT EXISTS ${CMAKE_OSX_SYSROOT})
message(SEND_ERROR "Please make sure that Xcode is installed and that the toolchain"
Expand All @@ -202,6 +200,8 @@ if (NOT EXISTS ${CMAKE_OSX_SYSROOT})
"and see if that fixes the problem for you.")
message(FATAL_ERROR "Invalid CMAKE_OSX_SYSROOT: ${CMAKE_OSX_SYSROOT} "
"does not exist.")
elseif(DEFINED CMAKE_OSX_SYSROOT)
message(STATUS "Using manually set SDK path: ${CMAKE_OSX_SYSROOT} for platform: ${IOS_PLATFORM}")
else()
message(STATUS "Using SDK: ${CMAKE_OSX_SYSROOT} for platform: ${IOS_PLATFORM}")
endif()
Expand Down

0 comments on commit c812557

Please sign in to comment.