summaryrefslogtreecommitdiffhomepage
path: root/cmake
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-09-20 19:27:18 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-09-20 23:22:06 +0200
commitc28efa181dc302489ff5bd1bb2f7d2d5d88bfd92 (patch)
treedfe3f1121e6df7794e5eca08f62c25d264a74efb /cmake
parent16f391b203e20b91dff713c40c07aec4885c7350 (diff)
cmake: expose M_PI and friends on MSVC
Diffstat (limited to 'cmake')
-rw-r--r--cmake/opentrack-platform.cmake2
1 files changed, 1 insertions, 1 deletions
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)