From 69c6bdd7a8d19a2b0bb716ea850acac1e46378cb Mon Sep 17 00:00:00 2001 From: Christophe Riccio Date: Tue, 31 May 2011 17:41:21 +0100 Subject: [PATCH] Fixed warnings on Visual C++ --- CMakeLists.txt | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 85ae87a4..4115667c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,15 +5,18 @@ project(glm) enable_testing() add_definitions(-D_CRT_SECURE_NO_WARNINGS) -#add_definitions(/Za) -#add_definitions(-pedantic) -#add_definitions(-S) -#add_definitions(-s) -add_definitions(-msse2) -#add_definitions(-m32) -#add_definitions(-mfpmath=387) -#add_definitions(-ffast-math) -#add_definitions(-O3) + +if(CMAKE_COMPILER_IS_GNUCXX) + #add_definitions(/Za) + #add_definitions(-pedantic) + #add_definitions(-S) + #add_definitions(-s) + add_definitions(-msse2) + #add_definitions(-m32) + #add_definitions(-mfpmath=387) + #add_definitions(-ffast-math) + #add_definitions(-O3) +endif() include_directories(".")