Demos (cmake): cmake: Enable math constant defines on MSVC.
Jose Fonseca
jrfonseca at kemper.freedesktop.org
Tue Nov 9 16:18:52 UTC 2010
Module: Demos
Branch: cmake
Commit: 6620349197f36506183bbf956bbc95330b77fc62
URL: http://cgit.freedesktop.org/mesa/demos/commit/?id=6620349197f36506183bbf956bbc95330b77fc62
Author: José Fonseca <jfonseca at vmware.com>
Date: Tue Nov 9 16:18:29 2010 +0000
cmake: Enable math constant defines on MSVC.
---
CMakeLists.txt | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 386c8e0..cd84233 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -38,6 +38,9 @@ if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
endif (${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
if (MSVC)
+ # Enable math constants defines
+ add_definitions (-D_USE_MATH_DEFINES)
+
# Silence several MSVC pedantic warnings
add_definitions (-D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_WARNINGS)
add_definitions (-D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS)
More information about the mesa-commit
mailing list