diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-07-19 07:08:03 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-07-19 07:38:37 +0200 |
commit | 0773f40c072bdf117fff9e7179849b65737e7491 (patch) | |
tree | 534d764580eb312ada0dea038a1632fac97c5e2a /opentrack-compat/CMakeLists.txt | |
parent | 9296ed95961b846a13477581e2947b8be611b154 (diff) |
move nan check to compat
Diffstat (limited to 'opentrack-compat/CMakeLists.txt')
-rw-r--r-- | opentrack-compat/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/opentrack-compat/CMakeLists.txt b/opentrack-compat/CMakeLists.txt index 6f745701..2bbb496c 100644 --- a/opentrack-compat/CMakeLists.txt +++ b/opentrack-compat/CMakeLists.txt @@ -2,3 +2,7 @@ opentrack_boilerplate(opentrack-compat NO-COMPAT BIN) if(NOT WIN32 AND NOT APPLE) target_link_libraries(opentrack-compat rt) endif() +if(CMAKE_COMPILER_IS_GNUCXX) + set_source_files_properties(nan.cpp PROPERTIES + COMPILE_FLAGS "-fno-fast-math -fno-finite-math-only -O0") +endif() |