From dea923c84761ccfbd210ea3dea9c90b5784a9b85 Mon Sep 17 00:00:00 2001 From: Marius Kintel Date: Sun, 16 Oct 2011 18:54:18 +0200 Subject: M_PI define for Windows diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 76a08ec..c4d1b7f 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -40,6 +40,8 @@ if(WIN32) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4100") # fopen_s advertisement set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_CRT_SECURE_NO_DEPRECATE") + # M_PI + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_USE_MATH_DEFINES") endif() # Debugging - if you uncomment, use nmake -f Makefile > log.txt (the log is big) -- cgit v0.10.1