summaryrefslogtreecommitdiffhomepage
path: root/compat/CMakeLists.txt
blob: 7e5dd4cd6487d05db2021a8ccb10786801563652 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
otr_module(compat NO-COMPAT BIN)

if(NOT WIN32 AND NOT APPLE)
    target_link_libraries(opentrack-compat rt)
endif()

if(WIN32)
    target_link_libraries(opentrack-compat winmm)
endif()

if(CMAKE_COMPILER_IS_GNUCXX)
    otr_prop(SOURCE nan.cpp COMPILE_FLAGS "-fno-lto -fno-fast-math -fno-finite-math-only -O0")
endif()