Skip to content
Snippets Groups Projects
Commit b10f0581 authored by dmitriy.gerasimov's avatar dmitriy.gerasimov
Browse files

[*] Smoother OS detection

parent e0402a38
No related branches found
No related tags found
No related merge requests found
Pipeline #7308 passed with stage
in 13 seconds
......@@ -48,6 +48,14 @@ if(UNIX)
add_definitions ("-DDAP_OS_DARWIN -DDARWIN -DDAP_OS_BSD")
set(DARWIN ON)
set(BSD ON)
if (${_CMAKE_OSX_SYSROOT_PATH} MATCHES "MacOS")
set(MACOS ON)
add_definitions("-DDAP_OS_MAC")
endif()
if (${_CMAKE_OSX_SYSROOT_PATH} MATCHES "iOS")
set(IOS ON)
add_definitions("-DDAP_OS_IOS")
endif()
endif()
if (${CMAKE_SYSTEM_NAME} MATCHES "BSD" )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment