Skip to content

Commit c812557

Browse files
authored
Update ios.toolchain.cmake
Fixed double outputs if manually specifying CMAKE_OSX_SYSROOT
1 parent 525b062 commit c812557

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ios.toolchain.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,6 @@ if (NOT DEFINED CMAKE_OSX_SYSROOT OR (NOT CMAKE_OSX_SYSROOT STREQUAL CMAKE_OSX_S
192192
OUTPUT_VARIABLE CMAKE_OSX_SYSROOT
193193
ERROR_QUIET
194194
OUTPUT_STRIP_TRAILING_WHITESPACE)
195-
elseif(DEFINED CMAKE_OSX_SYSROOT)
196-
message(STATUS "Using manually set SDK path: ${CMAKE_OSX_SYSROOT} for platform: ${IOS_PLATFORM}")
197195
endif()
198196
if (NOT EXISTS ${CMAKE_OSX_SYSROOT})
199197
message(SEND_ERROR "Please make sure that Xcode is installed and that the toolchain"
@@ -202,6 +200,8 @@ if (NOT EXISTS ${CMAKE_OSX_SYSROOT})
202200
"and see if that fixes the problem for you.")
203201
message(FATAL_ERROR "Invalid CMAKE_OSX_SYSROOT: ${CMAKE_OSX_SYSROOT} "
204202
"does not exist.")
203+
elseif(DEFINED CMAKE_OSX_SYSROOT)
204+
message(STATUS "Using manually set SDK path: ${CMAKE_OSX_SYSROOT} for platform: ${IOS_PLATFORM}")
205205
else()
206206
message(STATUS "Using SDK: ${CMAKE_OSX_SYSROOT} for platform: ${IOS_PLATFORM}")
207207
endif()

0 commit comments

Comments
 (0)