diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2018-10-08 17:49:48 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2018-10-08 15:53:41 +0000 |
commit | f5355a60e531f1590f8c0deae4895f25087a9c08 (patch) | |
tree | 5020c9e236c0f32a55b89e35f86fe025bed9edaa | |
parent | 9951bdd6ba93cac6accba7f3cf8a486e086316e3 (diff) |
cmake: fix mingw-w64
-rw-r--r-- | cmake/opentrack-platform.cmake | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cmake/opentrack-platform.cmake b/cmake/opentrack-platform.cmake index 1e34a5ef..1bb0a973 100644 --- a/cmake/opentrack-platform.cmake +++ b/cmake/opentrack-platform.cmake @@ -60,11 +60,14 @@ IF(CMAKE_SYSTEM_NAME STREQUAL "Linux") set(LINUX TRUE) endif() +if(WIN32) + add_definitions(-D_USE_MATH_DEFINES=1) +endif() + if(MSVC) add_definitions(-DNOMINMAX -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS -D_NO_DEBUG_HEAP) add_definitions(-D_ITERATOR_DEBUG_LEVEL=0) add_definitions(-D_HAS_EXCEPTIONS=0) - add_definitions(-D_USE_MATH_DEFINES=1) add_definitions(-D_ENABLE_EXTENDED_ALIGNED_STORAGE) add_definitions(-D_SILENCE_CXX17_NEGATORS_DEPRECATION_WARNING) add_definitions(-D_SILENCE_CXX17_ADAPTOR_TYPEDEFS_DEPRECATION_WARNING) |