From 96974d2cd1deac76622211092a37e8fbb05ef888 Mon Sep 17 00:00:00 2001 From: Harald Oehlmann Date: Mon, 14 Sep 2015 21:47:07 +0200 Subject: [PATCH] Fix issue #3: Fix FindZint.cmake dest dir (patch by Jaroslaw Staniek) --- CMakeLists.txt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3399511a..25c4b54f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -86,7 +86,14 @@ CONFIGURE_FILE( ADD_CUSTOM_TARGET(uninstall "${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake") -install(FILES cmake/modules/FindZint.cmake DESTINATION ${CMAKE_ROOT}/Modules COMPONENT Devel) +# staniek: don't install +if (DATA_INSTALL_DIR) + set(CMAKE_MODULES_INSTALL_PATH ${DATA_INSTALL_DIR}/cmake/modules) +else (DATA_INSTALL_DIR) + set(CMAKE_MODULES_INSTALL_PATH ${CMAKE_ROOT}/Modules) +endif(DATA_INSTALL_DIR) + +install(FILES cmake/modules/FindZint.cmake DESTINATION ${CMAKE_MODULES_INSTALL_PATH} COMPONENT Devel) # This needs to be run very last so other parts of the scripts can take # advantage of this.