diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-07-30 11:50:33 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-07-30 19:54:10 +0200 |
commit | 71df0384ab5d57d9d56a622ebb924b553e154e03 (patch) | |
tree | f5c2f10566b3f99ceabcfd9d209935d9659835bb /cmake/mingw-w64.cmake | |
parent | ae51598b329f7120c6ee07e2ed127a607ff68f1e (diff) |
cmake: define M_PI and friends on mingw-w64
Diffstat (limited to 'cmake/mingw-w64.cmake')
-rw-r--r-- | cmake/mingw-w64.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/mingw-w64.cmake b/cmake/mingw-w64.cmake index fdd8fcbf..5da13ec3 100644 --- a/cmake/mingw-w64.cmake +++ b/cmake/mingw-w64.cmake @@ -16,6 +16,7 @@ endif() set(c ${p}i686-w64-mingw32-) #set(CMAKE_MAKE_PROGRAM ${p}/mingw32-make.exe CACHE FILEPATH "" FORCE) +add_definitions(-D_USE_MATH_DEFINES=1) SET(CMAKE_C_COMPILER ${c}gcc${e}) SET(CMAKE_CXX_COMPILER ${c}g++${e}) |