Skip to content

Commit

Permalink
Shorten if statement and omit macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
ssrobins committed Jul 12, 2023
1 parent 4ad409a commit 54c5c32
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions conan_provider.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@ function(detect_os OS OS_API_LEVEL OS_VERSION OS_SDK)
message(STATUS "CMake-Conan: android_platform=${ANDROID_PLATFORM}")
set(${OS_API_LEVEL} ${_OS_API_LEVEL} PARENT_SCOPE)
endif()
if(${CMAKE_SYSTEM_NAME} STREQUAL "Darwin" OR
${CMAKE_SYSTEM_NAME} STREQUAL "iOS" OR
${CMAKE_SYSTEM_NAME} STREQUAL "tvOS" OR
${CMAKE_SYSTEM_NAME} STREQUAL "watchOS")
if(CMAKE_SYSTEM_NAME MATCHES "iOS|tvOS|watchOS")
if(DEFINED CMAKE_OSX_SYSROOT)
# CMAKE_OSX_SYSROOT contains the full path to the SDK for MakeFile/Ninja
# generators, but just has the original input string for Xcode. Use the
Expand Down

0 comments on commit 54c5c32

Please sign in to comment.