From c28efa181dc302489ff5bd1bb2f7d2d5d88bfd92 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 20 Sep 2016 19:27:18 +0200 Subject: cmake: expose M_PI and friends on MSVC --- cmake/opentrack-platform.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmake') diff --git a/cmake/opentrack-platform.cmake b/cmake/opentrack-platform.cmake index c659e4c0..2986f12f 100644 --- a/cmake/opentrack-platform.cmake +++ b/cmake/opentrack-platform.cmake @@ -3,7 +3,7 @@ IF(CMAKE_SYSTEM_NAME STREQUAL "Linux") endif() if(MSVC) - add_definitions(-DNOMINMAX -D_CRT_SECURE_NO_WARNINGS) + add_definitions(-DNOMINMAX -D_CRT_SECURE_NO_WARNINGS -D_USE_MATH_DEFINES) endif() if(WIN32) -- cgit v1.2.3