From 007421e19c15bf53805ddc4075feb72e4ebfd797 Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 1 Mar 2006 18:49:52 -0500 Subject: BUG: Check for whether to add BUILD_TYPE to install rule should check for a . in the first character not the second. --- Source/cmGlobalGenerator.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx index b30d976..9a4815f 100644 --- a/Source/cmGlobalGenerator.cxx +++ b/Source/cmGlobalGenerator.cxx @@ -1338,7 +1338,7 @@ void cmGlobalGenerator::CreateDefaultGlobalTargets(cmTargets* targets) cmd = cmakeCommand; } singleLine.push_back(cmd.c_str()); - if ( cmakeCfgIntDir && *cmakeCfgIntDir && cmakeCfgIntDir[1] != '.' ) + if ( cmakeCfgIntDir && *cmakeCfgIntDir && cmakeCfgIntDir[0] != '.' ) { std::string cfgArg = "-DBUILD_TYPE="; cfgArg += mf->GetDefinition("CMAKE_CFG_INTDIR"); -- cgit v0.12