1
0
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:
Christoph Heiss 2016-05-20 16:24:51 +02:00
parent 2ee4a6e533
commit d02b53e4ad

View File

@ -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 ()