From c1a051d7330dbe2dcd0bdb66bfd35074f62ef3a4 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 11 Feb 2009 17:21:36 +0000 Subject: [PATCH] Disabled the use of aggressive warnings under OSX as the default. --- CMakeLists.txt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a2f2fac75..e75b81393 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -578,7 +578,14 @@ ENDIF(CMAKE_COMPILER_IS_GNUCXX) # This part is for the CMake menu option to toggle the warnings on/off. # This will only be made available if we set values for OSG_AGGRESSIVE_WARNING_FLAGS. IF(OSG_AGGRESSIVE_WARNING_FLAGS) - OPTION(OSG_USE_AGGRESSIVE_WARNINGS "Enable to activate aggressive warnings" ON) + + IF (APPLE) + SET(DEFAULT_USE_AGGRESSIVE_WARNINGS OFF) + ELSE(APPLE) + SET(DEFAULT_USE_AGGRESSIVE_WARNINGS ON) + ENDIF(APPLE) + + OPTION(OSG_USE_AGGRESSIVE_WARNINGS "Enable to activate aggressive warnings" ${DEFAULT_USE_AGGRESSIVE_WARNINGS}) MARK_AS_ADVANCED(OSG_USE_AGGRESSIVE_WARNINGS) IF(OSG_USE_AGGRESSIVE_WARNINGS)