diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2010-03-15 18:53:12 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2010-03-15 18:53:12 (GMT) |
commit | ebdda6ed138173a287e52d7877c528ec8ccc817f (patch) | |
tree | e87943605d33146efbf863502897bffe37e465d1 /Source/cmExtraCodeBlocksGenerator.cxx | |
parent | 6bd50fad0d8f55b46d18b9b8051926ada5da0f55 (diff) | |
download | CMake-ebdda6ed138173a287e52d7877c528ec8ccc817f.zip CMake-ebdda6ed138173a287e52d7877c528ec8ccc817f.tar.gz CMake-ebdda6ed138173a287e52d7877c528ec8ccc817f.tar.bz2 |
Default to gcc as the compiler.
The compiler id is checked for C++ and C, if there is not one
of those available, then just default to gcc. This makes it
work with Fortran, or None projects.
Diffstat (limited to 'Source/cmExtraCodeBlocksGenerator.cxx')
-rw-r--r-- | Source/cmExtraCodeBlocksGenerator.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmExtraCodeBlocksGenerator.cxx b/Source/cmExtraCodeBlocksGenerator.cxx index 5cbef8c..4cb2b48 100644 --- a/Source/cmExtraCodeBlocksGenerator.cxx +++ b/Source/cmExtraCodeBlocksGenerator.cxx @@ -630,8 +630,8 @@ std::string cmExtraCodeBlocksGenerator::GetCBCompilerId(const cmMakefile* mf) std::string hostSystemName = mf->GetSafeDefinition("CMAKE_HOST_SYSTEM_NAME"); std::string systemName = mf->GetSafeDefinition("CMAKE_SYSTEM_NAME"); - std::string compilerId = mf->GetRequiredDefinition(compilerIdVar.c_str()); - std::string compiler = "gcc"; + std::string compilerId = mf->GetSafeDefinition(compilerIdVar.c_str()); + std::string compiler = "gcc"; // default to gcc if (compilerId == "MSVC") { compiler = "msvc8"; |