diff options
author | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2016-08-18 17:47:32 (GMT) |
---|---|---|
committer | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2016-08-18 17:47:32 (GMT) |
commit | 7f97a6c94b59be7e7eba7362ce3eecdcff79ab70 (patch) | |
tree | f87d376ea5dc8c4f0f54faef0c6f14c4eaf52d7d /Source/CPack/cmCPackGenerator.cxx | |
parent | 4988b914e1fb7ca215436738ab08ed199a6f63d2 (diff) | |
download | CMake-7f97a6c94b59be7e7eba7362ce3eecdcff79ab70.zip CMake-7f97a6c94b59be7e7eba7362ce3eecdcff79ab70.tar.gz CMake-7f97a6c94b59be7e7eba7362ce3eecdcff79ab70.tar.bz2 |
CPack: don't use else after return
Diffstat (limited to 'Source/CPack/cmCPackGenerator.cxx')
-rw-r--r-- | Source/CPack/cmCPackGenerator.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/CPack/cmCPackGenerator.cxx b/Source/CPack/cmCPackGenerator.cxx index 58a2243..96c218c 100644 --- a/Source/CPack/cmCPackGenerator.cxx +++ b/Source/CPack/cmCPackGenerator.cxx @@ -67,7 +67,8 @@ int cmCPackGenerator::PrepareNames() cmCPackLog::LOG_ERROR, "CPACK_SET_DESTDIR is set to ON but the '" << Name << "' generator does NOT support it." << std::endl); return 0; - } else if (SETDESTDIR_SHOULD_NOT_BE_USED == SupportsSetDestdir()) { + } + if (SETDESTDIR_SHOULD_NOT_BE_USED == SupportsSetDestdir()) { cmCPackLogger(cmCPackLog::LOG_WARNING, "CPACK_SET_DESTDIR is set to ON but it is " << "usually a bad idea to do that with '" << Name |