From 419e02e264163e40a51263489302c5f992e3d337 Mon Sep 17 00:00:00 2001 From: Ryan Carsten Schmidt Date: Fri, 6 Dec 2024 10:58:41 -0600 Subject: [PATCH] Recognize macOS SDK in command line tools Fixes #3 --- cmake_find/boilerplate.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")