diff --git a/CMakeLists.txt b/CMakeLists.txt index 01551e6a2..f1cdda80a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -248,7 +248,7 @@ else() $<$:-Wall>) endif() -if(${CMAKE_OSX_SYSROOT} MATCHES "\/MacOSX.platform\/Developer\/SDKs") +if(APPLE AND NOT IOS) set(TARGET_MAC ON) endif()