diff options
-rw-r--r-- | CMake/OtherTests.cmake | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/CMake/OtherTests.cmake b/CMake/OtherTests.cmake index 81ce63503..5cddf4afa 100644 --- a/CMake/OtherTests.cmake +++ b/CMake/OtherTests.cmake @@ -237,9 +237,8 @@ endif() unset(CMAKE_TRY_COMPILE_TARGET_TYPE) if(NOT DEFINED CMAKE_TOOLCHAIN_FILE) - if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") - # nothing - else() + if(NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin") + # only try this on non-macOS # if not cross-compilation... include(CheckCSourceRuns) |