aboutsummaryrefslogtreecommitdiff
path: root/attic/modules/check_installed_exports_file.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'attic/modules/check_installed_exports_file.cmake')
-rw-r--r--attic/modules/check_installed_exports_file.cmake14
1 files changed, 7 insertions, 7 deletions
diff --git a/attic/modules/check_installed_exports_file.cmake b/attic/modules/check_installed_exports_file.cmake
index d1d0c718..83ed205b 100644
--- a/attic/modules/check_installed_exports_file.cmake
+++ b/attic/modules/check_installed_exports_file.cmake
@@ -19,9 +19,9 @@ function(CHECK_INSTALLED_EXPORTS_FILE _filename)
# get the absolute install directory, consider absolute and relative paths and also DESTDIR
if(IS_ABSOLUTE "${EXPORT_INSTALL_DIR}")
set(installDir "$ENV{DESTDIR}${EXPORT_INSTALL_DIR}")
- else(IS_ABSOLUTE "${EXPORT_INSTALL_DIR}")
+ else()
set(installDir "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/${EXPORT_INSTALL_DIR}")
- endif(IS_ABSOLUTE "${EXPORT_INSTALL_DIR}")
+ endif()
set(installedExportsFile "${installDir}/${_filename}")
@@ -55,14 +55,14 @@ function(CHECK_INSTALLED_EXPORTS_FILE _filename)
file(GLOB exportFiles "${installDir}/${CMAKE_MATCH_1}-*.cmake")
# message(STATUS "XXX files: ${exportFiles}")
file(REMOVE ${exportFiles})
- endif("${_filename}" MATCHES "^(.+)(\\.cmake)$")
- else(NOT "${installedExportsFileContents}" STREQUAL "${binaryDirExportsFileContents}")
+ endif()
+ else()
# message(STATUS "XXX FILES ${_filename} are the same")
- endif(NOT "${installedExportsFileContents}" STREQUAL "${binaryDirExportsFileContents}")
+ endif()
- endif(EXISTS "${binaryDirExportsFile}")
+ endif()
- endif(EXISTS "${installedExportsFile}")
+ endif()
endfunction(CHECK_INSTALLED_EXPORTS_FILE)