Make compilation on M1 Macs work (#1383)

This commit is contained in:
Stephen Mose Aaskov
2022-01-21 20:02:37 +10:00
committed by GitHub
parent 121a1ffee5
commit 2593bef711
2 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -83,7 +83,7 @@ if(WIN32)
list(APPEND CMAKE_PREFIX_PATH "${WIN_EXTRA_LIBS_PATH}" "${WIN_EXTRA_LIBS_PATH}/SDL") # hints for FindSDL
endif()
if(APPLE)
if(CMAKE_HOST_APPLE)
execute_process(COMMAND xcrun --show-sdk-path
OUTPUT_VARIABLE SDKROOT
ERROR_QUIET