cmake: Check for "Darwin" instead of "Mac" to support MacOS

This commit is contained in:
Michael Fabian 'Xaymar' Dirks 2020-10-06 11:28:23 +02:00
parent 3d70814b93
commit 85a88902de
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
set(D_PLATFORM_WINDOWS 1) set(D_PLATFORM_WINDOWS 1)
elseif(CMAKE_SYSTEM_NAME STREQUAL "Linux") elseif(CMAKE_SYSTEM_NAME STREQUAL "Linux")
set(D_PLATFORM_LINUX 1) set(D_PLATFORM_LINUX 1)
elseif(CMAKE_SYSTEM_NAME STREQUAL "Mac") elseif(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
set(D_PLATFORM_MAC 1) set(D_PLATFORM_MAC 1)
else() else()
message(FATAL_ERROR "Unknown platform, please file a bug with your exact setup if you believe this to be an error.") message(FATAL_ERROR "Unknown platform, please file a bug with your exact setup if you believe this to be an error.")