diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2008-03-27 11:16:30 -0400 |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2008-03-27 11:16:30 -0400 |
commit | 69e3f0d2e9d0f9351383fe492e1f2399c5c82565 (patch) | |
tree | c4c2a6f13a8557441007da6b163f59577d03d3ec | |
parent | 9ed3164c8ecede8095e5e91cbcc2eb43041dd721 (diff) | |
download | cmake-69e3f0d2e9d0f9351383fe492e1f2399c5c82565.tar.gz |
ENH: merge in from main tree
-rw-r--r-- | CMakeLists.txt | 2 | ||||
-rw-r--r-- | Modules/CPack.cmake | 4 | ||||
-rw-r--r-- | Source/cmInstallCommandArguments.cxx | 8 | ||||
-rw-r--r-- | Source/cmake.cxx | 13 |
4 files changed, 16 insertions, 11 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index d7aaba3a71..3b0483b341 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -354,7 +354,7 @@ ENDMACRO (CMAKE_BUILD_UTILITIES) SET(CMake_VERSION_MAJOR 2) SET(CMake_VERSION_MINOR 6) SET(CMake_VERSION_PATCH 0) -SET(CMake_VERSION_RC 4) +SET(CMake_VERSION_RC 5) # CVS versions are odd, if this is an odd minor version # then set the CMake_VERSION_DATE variable IF("${CMake_VERSION_MINOR}" MATCHES "[13579]$") diff --git a/Modules/CPack.cmake b/Modules/CPack.cmake index b0075ac23d..15f46fbba4 100644 --- a/Modules/CPack.cmake +++ b/Modules/CPack.cmake @@ -73,7 +73,7 @@ cpack_set_if_not_set(CPACK_SYSTEM_NAME "${__cpack_system_name}") # <project>-<major>.<minor>.<patch>-<release>-<platform>.<pkgtype> cpack_set_if_not_set(CPACK_PACKAGE_FILE_NAME - "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}-${CPACK_SYSTEM_NAME}") + "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}-${CPACK_SYSTEM_NAME}") cpack_set_if_not_set(CPACK_PACKAGE_INSTALL_DIRECTORY "${CPACK_PACKAGE_NAME} ${CPACK_PACKAGE_VERSION}") cpack_set_if_not_set(CPACK_PACKAGE_INSTALL_REGISTRY_KEY @@ -202,7 +202,7 @@ cpack_set_if_not_set(CPACK_SOURCE_INSTALLED_DIRECTORIES "${CMAKE_SOURCE_DIR};/") cpack_set_if_not_set(CPACK_SOURCE_TOPLEVEL_TAG "${CPACK_SYSTEM_NAME}-Source") cpack_set_if_not_set(CPACK_SOURCE_PACKAGE_FILE_NAME - "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}-Source") + "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}-Source") cpack_set_if_not_set(CPACK_SOURCE_IGNORE_FILES "/CVS/;/\\\\\\\\.svn/;\\\\\\\\.swp$;\\\\\\\\.#;/#") SET(CPACK_INSTALL_CMAKE_PROJECTS "${CPACK_SOURCE_INSTALL_CMAKE_PROJECTS}") diff --git a/Source/cmInstallCommandArguments.cxx b/Source/cmInstallCommandArguments.cxx index ddfd9d4c36..64dd965ff2 100644 --- a/Source/cmInstallCommandArguments.cxx +++ b/Source/cmInstallCommandArguments.cxx @@ -40,9 +40,7 @@ cmInstallCommandArguments::cmInstallCommandArguments() ,NamelinkOnly (&Parser, "NAMELINK_ONLY" , &ArgumentGroup) ,NamelinkSkip (&Parser, "NAMELINK_SKIP" , &ArgumentGroup) ,GenericArguments(0) -{ - this->Component.SetDefaultString("Unspecified"); -} +{} const std::string& cmInstallCommandArguments::GetDestination() const { @@ -67,7 +65,9 @@ const std::string& cmInstallCommandArguments::GetComponent() const { return this->GenericArguments->GetComponent(); } - return this->EmptyString; + + static std::string unspecifiedComponent = "Unspecified"; + return unspecifiedComponent; } const std::string& cmInstallCommandArguments::GetRename() const diff --git a/Source/cmake.cxx b/Source/cmake.cxx index 88f1290b51..3b99a82089 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -3936,10 +3936,15 @@ bool cmake::RunCommand(const char* comment, // use rc command to create .res file cmSystemTools::RunSingleCommand(command, &output, - &retCode); - if(verbose) - { - std::cout << output << "\n"; + &retCode, 0, false); + // always print the output of the command, unless + // it is the dumb rc command banner, but if the command + // returned an error code then print the output anyway as + // the banner may be mixed with some other important information. + if(output.find("Resource Compiler Version") == output.npos + || retCode !=0) + { + std::cout << output; } // if retCodeOut is requested then always return true // and set the retCodeOut to retCode |