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

if(NOT WIN32 AND NOT APPLE)
    target_link_libraries(${self} rt)
endif()

if(WIN32)
    target_link_libraries(${self} strmiids)
endif()

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