From f5355a60e531f1590f8c0deae4895f25087a9c08 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 8 Oct 2018 17:49:48 +0200 Subject: cmake: fix mingw-w64 --- cmake/opentrack-platform.cmake | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cmake') 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) -- cgit v1.2.3