From 0e8515fa4c87883ecb45ede6315f11edce6d0f7b Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 7 Mar 2007 15:57:52 -0500 Subject: BUG: Get rid of ancient variables CMAKE_CXX_WARNING_LEVEL, CMAKE_CXX_USE_RTTI, CMAKE_CXX_STACK_SIZE which are only partially implemented and now taken care of by flag mapping anyway. --- Modules/Platform/Windows-cl.cmake | 6 +----- Source/cmLocalVisualStudio7Generator.cxx | 11 ----------- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/Modules/Platform/Windows-cl.cmake b/Modules/Platform/Windows-cl.cmake index a2338ef..a89105a 100644 --- a/Modules/Platform/Windows-cl.cmake +++ b/Modules/Platform/Windows-cl.cmake @@ -66,11 +66,7 @@ IF(CMAKE_GENERATOR MATCHES "Visual Studio 7" OR CMAKE_GENERATOR MATCHES "Visual SET (CMAKE_NO_BUILD_TYPE 1) SET (CMAKE_CONFIGURATION_TYPES "Debug;Release;MinSizeRel;RelWithDebInfo" CACHE STRING "Semicolon separated list of supported configuration types, only supports Debug, Release, MinSizeRel, and RelWithDebInfo, anything else will be ignored.") - SET (CMAKE_CXX_WARNING_LEVEL "3" CACHE STRING - "Default compiler warning level for C++.") - SET (CMAKE_CXX_STACK_SIZE "10000000" CACHE STRING - "Size of stack for programs.") - MARK_AS_ADVANCED(CMAKE_CONFIGURATION_TYPES CMAKE_CXX_STACK_SIZE CMAKE_CXX_WARNING_LEVEL) + MARK_AS_ADVANCED(CMAKE_CONFIGURATION_TYPES) ENDIF(CMAKE_GENERATOR MATCHES "Visual Studio 7" OR CMAKE_GENERATOR MATCHES "Visual Studio 8") # does the compiler support pdbtype and is it the newer compiler IF(CMAKE_GENERATOR MATCHES "Visual Studio 8") diff --git a/Source/cmLocalVisualStudio7Generator.cxx b/Source/cmLocalVisualStudio7Generator.cxx index ee1c014..abfaa71 100644 --- a/Source/cmLocalVisualStudio7Generator.cxx +++ b/Source/cmLocalVisualStudio7Generator.cxx @@ -587,17 +587,6 @@ void cmLocalVisualStudio7Generator::WriteConfiguration(std::ostream& fout, targetOptions.AddDefine(exportSymbol); } - // Override the flag map with cmake-specific settings. - if(this->Makefile->IsOn("CMAKE_CXX_USE_RTTI")) - { - targetOptions.AddFlag("RuntimeTypeInfo", "TRUE"); - } - if(const char* warningLevel = - this->Makefile->GetDefinition("CMAKE_CXX_WARNING_LEVEL")) - { - targetOptions.AddFlag("WarningLevel", warningLevel); - } - // The intermediate directory name consists of a directory for the // target and a subdirectory for the configuration name. std::string intermediateDir = this->GetTargetDirectory(target); -- cgit v0.12