mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-07 03:12:36 +01:00
OS X: Add platform define
This commit is contained in:
parent
2ee4a6e533
commit
d02b53e4ad
@ -26,6 +26,8 @@ option(ENABLE_PROFILING "Enable detailed profiling metrics")
|
||||
|
||||
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
||||
add_definitions(-DRW_LINUX=1)
|
||||
elseif (CMAKE_SYSTEM_NAME STREQUAL "Darwin")
|
||||
add_definitions(-DRW_OSX=1)
|
||||
else ()
|
||||
message(FATAL_ERROR "Unknown platform \"${CMAKE_SYSTEM_NAME}\". please update CMakeLists.txt.")
|
||||
endif ()
|
||||
|
Loading…
Reference in New Issue
Block a user