summaryrefslogtreecommitdiffstats
path: root/Modules/CMakePackageConfigHelpers.cmake
diff options
context:
space:
mode:
authorAlex Neundorf <neundorf@kde.org>2013-01-24 20:18:47 (GMT)
committerAlex Neundorf <neundorf@kde.org>2013-01-24 20:18:47 (GMT)
commit37c4bc1f86a72a76a1ccc3094ba7cc3ec134ff21 (patch)
tree17185de71e8fab4bf9007a4cad21c4003ac87d22 /Modules/CMakePackageConfigHelpers.cmake
parentd4774140b7fa8685a9f29147308fd7fe5365e1fb (diff)
downloadCMake-37c4bc1f86a72a76a1ccc3094ba7cc3ec134ff21.zip
CMake-37c4bc1f86a72a76a1ccc3094ba7cc3ec134ff21.tar.gz
CMake-37c4bc1f86a72a76a1ccc3094ba7cc3ec134ff21.tar.bz2
configure_package_config_file(): fix indentation
This is a separate commit, so that the previous commit is smaller. Alex
Diffstat (limited to 'Modules/CMakePackageConfigHelpers.cmake')
-rw-r--r--Modules/CMakePackageConfigHelpers.cmake12
1 files changed, 6 insertions, 6 deletions
diff --git a/Modules/CMakePackageConfigHelpers.cmake b/Modules/CMakePackageConfigHelpers.cmake
index 13617ce..d6d3cb1 100644
--- a/Modules/CMakePackageConfigHelpers.cmake
+++ b/Modules/CMakePackageConfigHelpers.cmake
@@ -194,12 +194,12 @@ function(CONFIGURE_PACKAGE_CONFIG_FILE _inputFile _outputFile)
set(PACKAGE_${var} "${CMAKE_INSTALL_PREFIX}/${${var}}")
endif()
else()
- if(IS_ABSOLUTE "${${var}}")
- string(REPLACE "${CMAKE_INSTALL_PREFIX}" "\${PACKAGE_PREFIX_DIR}"
- PACKAGE_${var} "${${var}}")
- else()
- set(PACKAGE_${var} "\${PACKAGE_PREFIX_DIR}/${${var}}")
- endif()
+ if(IS_ABSOLUTE "${${var}}")
+ string(REPLACE "${CMAKE_INSTALL_PREFIX}" "\${PACKAGE_PREFIX_DIR}"
+ PACKAGE_${var} "${${var}}")
+ else()
+ set(PACKAGE_${var} "\${PACKAGE_PREFIX_DIR}/${${var}}")
+ endif()
endif()
endif()
endforeach()