diff options
author | Patrick von Reth <vonreth@kde.org> | 2014-11-03 10:21:59 +0100 |
---|---|---|
committer | Patrick von Reth <vonreth@kde.org> | 2014-11-03 10:21:59 +0100 |
commit | e8d8c44f1552390e30691d3bd8536e5c7cf3543e (patch) | |
tree | a37fbea197f1c00a3a7346e04d379b1d88a458b9 /kde-modules | |
parent | 95d90ac3cb7a83a265f39b9b3f7a8a4b212a435a (diff) | |
download | extra-cmake-modules-e8d8c44f1552390e30691d3bd8536e5c7cf3543e.tar.gz extra-cmake-modules-e8d8c44f1552390e30691d3bd8536e5c7cf3543e.tar.bz2 |
enable -D_USE_MATH_DEFINES on Windows
Diffstat (limited to 'kde-modules')
-rw-r--r-- | kde-modules/KDECompilerSettings.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kde-modules/KDECompilerSettings.cmake b/kde-modules/KDECompilerSettings.cmake index 8b31b160..b5a9d423 100644 --- a/kde-modules/KDECompilerSettings.cmake +++ b/kde-modules/KDECompilerSettings.cmake @@ -156,6 +156,10 @@ if (WIN32) # Use the Unicode versions of Windows API by default # See http://msdn.microsoft.com/en-us/library/windows/desktop/dd317766%28v=vs.85%29.aspx _kde_add_platform_definitions(-DUNICODE -D_UNICODE) + + # As stated in http://msdn.microsoft.com/en-us/library/4hwaceh6.aspx M_PI only gets defined + # if _USE_MATH_DEFINES is defined, with mingw this has a similar effect as -D_GNU_SOURCE on math.h + _kde_add_platform_definitions(-D_USE_MATH_DEFINES) endif() |