diff options
| author | Marius Kintel <marius@kintel.net> | 2011-10-16 16:54:18 (GMT) |
|---|---|---|
| committer | Marius Kintel <marius@kintel.net> | 2011-10-16 16:54:18 (GMT) |
| commit | dea923c84761ccfbd210ea3dea9c90b5784a9b85 (patch) | |
| tree | 3bcd5df6cb14758c67ab7bf20c13ade372f262ed | |
| parent | 1dcfd7627bf5579123bd4870825caa7a2eac430b (diff) | |
M_PI define for Windows
| -rw-r--r-- | tests/CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
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) |
