From 56e2d451f4221e3012943174fe6f6f0f73e72326 Mon Sep 17 00:00:00 2001 From: whitequark Date: Wed, 18 May 2016 09:35:32 +0000 Subject: [PATCH] MSVC: add /D_USE_MATH_DEFINES. Turns out M_PI and friends aren't from the C standard, but rather they are a POSIX extension. This definition is necessary to enable them on MSVC. --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index fcfc96b..7a11806 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -41,8 +41,9 @@ if(WIN32) -DWIN32 -DWIN32_LEAN_AND_MEAN -DUNICODE + -D_UNICODE -DNOMINMAX - -D_UNICODE) + -D_USE_MATH_DEFINES) endif() if(MSVC)