From 71df0384ab5d57d9d56a622ebb924b553e154e03 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 30 Jul 2016 11:50:33 +0200 Subject: cmake: define M_PI and friends on mingw-w64 --- cmake/mingw-w64.cmake | 1 + 1 file changed, 1 insertion(+) (limited to 'cmake') 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}) -- cgit v1.2.3