diff --git a/cmake_find/boilerplate.cmake b/cmake_find/boilerplate.cmake index 2a7c201..8cda2e1 100644 --- a/cmake_find/boilerplate.cmake +++ b/cmake_find/boilerplate.cmake @@ -22,7 +22,7 @@ elseif (${CMAKE_SYSTEM_NAME} MATCHES "Darwin") set(IPHONE TRUE) elseif (${CMAKE_OSX_SYSROOT} MATCHES "/iPhoneSimulator.platform") set(IPHONESIM TRUE) - elseif (${CMAKE_OSX_SYSROOT} MATCHES "/MacOSX.platform") + elseif (${CMAKE_OSX_SYSROOT} MATCHES "/MacOSX.*\.sdk$") set(MACOS TRUE) else() message(FATAL_ERROR "Unsupported apple platform")