diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2006-10-04 15:11:21 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2006-10-04 15:11:21 (GMT) |
commit | 4f304e7a07c803f2b4396f94a9f38efb32f080aa (patch) | |
tree | d7f33b38ee127fce4d77525e88f2c6d1f4c2fe8a | |
parent | 7ed0532ae9477b393ec0bd21d3874936594d362a (diff) | |
download | CMake-4f304e7a07c803f2b4396f94a9f38efb32f080aa.zip CMake-4f304e7a07c803f2b4396f94a9f38efb32f080aa.tar.gz CMake-4f304e7a07c803f2b4396f94a9f38efb32f080aa.tar.bz2 |
BUG: fix for bug #3517 seg fault with enable language before project command
-rw-r--r-- | Source/cmGlobalGenerator.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx index 3124276..91ef6b3 100644 --- a/Source/cmGlobalGenerator.cxx +++ b/Source/cmGlobalGenerator.cxx @@ -463,7 +463,7 @@ cmGlobalGenerator::EnableLanguage(std::vector<std::string>const& languages, // cmake std::string projectCompatibility = mf->GetDefinition("CMAKE_ROOT"); projectCompatibility += "/Modules/"; - projectCompatibility += mf->GetDefinition("PROJECT_NAME"); + projectCompatibility += mf->GetSafeDefinition("PROJECT_NAME"); projectCompatibility += "Compatibility.cmake"; if(cmSystemTools::FileExists(projectCompatibility.c_str())) { |