浏览代码

configure_package_config_file(): fix indentation

This is a separate commit, so that the previous commit is smaller.

Alex
Alex Neundorf 13 年之前
父节点
当前提交
37c4bc1f86
共有 1 个文件被更改,包括 6 次插入6 次删除
  1. 6 6
      Modules/CMakePackageConfigHelpers.cmake

+ 6 - 6
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()