Skip to content

Commit 722ebe9

Browse files
committed
Adding macOS detection to cmake stuff, for future planning
1 parent 863e5a6 commit 722ebe9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cmake/Modules/DetectOS.cmake

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ elseif (CMAKE_SYSTEM_NAME MATCHES "Linux")
55
set(TARGET_PLATFORM_LINUX 1)
66
elseif (CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
77
set(TARGET_PLATFORM_FREEBSD 1)
8+
elseif (CMAKE_SYSTEM_NAME MATCHES "Darwin")
9+
set(TARGET_PLATFORM_MACOS 1)
810
else()
911
message(FATAL_ERROR "Unsupported OS: ${CMAKE_SYSTEM_NAME}")
1012
endif ()

0 commit comments

Comments
 (0)