summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-12-04 18:54:32 (GMT)
committerBrad King <brad.king@kitware.com>2006-12-04 18:54:32 (GMT)
commitd045ae45f2e45ca538269aadbab5e7dd6511186a (patch)
treed185cb7b164e3bdace17f73c661ef48c67acf3ee
parent273ac875716752d48720a905d0380373e21901ca (diff)
downloadCMake-d045ae45f2e45ca538269aadbab5e7dd6511186a.zip
CMake-d045ae45f2e45ca538269aadbab5e7dd6511186a.tar.gz
CMake-d045ae45f2e45ca538269aadbab5e7dd6511186a.tar.bz2
BUG: Do not print empty install configuration repeatedly.
-rw-r--r--Source/cmLocalGenerator.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
index 82736d2..398093d 100644
--- a/Source/cmLocalGenerator.cxx
+++ b/Source/cmLocalGenerator.cxx
@@ -361,7 +361,7 @@ void cmLocalGenerator::GenerateInstallRules()
// Write support code for generating per-configuration install rules.
fout <<
"# Set the install configuration name.\n"
- "IF(NOT CMAKE_INSTALL_CONFIG_NAME)\n"
+ "IF(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME)\n"
" IF(BUILD_TYPE)\n"
" STRING(REGEX REPLACE \"^[^A-Za-z0-9_]+\" \"\"\n"
" CMAKE_INSTALL_CONFIG_NAME \"${BUILD_TYPE}\")\n"
@@ -370,7 +370,7 @@ void cmLocalGenerator::GenerateInstallRules()
" ENDIF(BUILD_TYPE)\n"
" MESSAGE(STATUS \"Install configuration: "
"\\\"${CMAKE_INSTALL_CONFIG_NAME}\\\"\")\n"
- "ENDIF(NOT CMAKE_INSTALL_CONFIG_NAME)\n"
+ "ENDIF(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME)\n"
"\n";
// Write support code for dealing with component-specific installs.