From 17129cf078b0cd7ed5f457bada170363c457974d Mon Sep 17 00:00:00 2001 From: Kfir Itzhak Date: Sun, 17 Nov 2013 15:15:54 +0200 Subject: [PATCH] Fix minor bug introduced by commit cfc9a73851: Do not install mootools symlinks twice for out-of-source installations --- web/CMakeLists.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/web/CMakeLists.txt b/web/CMakeLists.txt index 529ca0b09..a3479f595 100644 --- a/web/CMakeLists.txt +++ b/web/CMakeLists.txt @@ -11,6 +11,8 @@ install(DIRECTORY ajax css graphics includes js lang skins tools views DESTINATI install(FILES index.php README.md DESTINATION "${ZM_WEBDIR}") install(FILES "${CMAKE_CURRENT_BINARY_DIR}/includes/config.php" DESTINATION "${ZM_WEBDIR}/includes") -# Install the mootools symlinks -install(FILES "${CMAKE_CURRENT_BINARY_DIR}/tools/mootools/mootools-core.js" DESTINATION "${ZM_WEBDIR}/tools/mootools") -install(FILES "${CMAKE_CURRENT_BINARY_DIR}/tools/mootools/mootools-more.js" DESTINATION "${ZM_WEBDIR}/tools/mootools") +# Install the mootools symlinks (if its not in the source directory) +if(NOT (CMAKE_BINARY_DIR STREQUAL CMAKE_SOURCE_DIR)) + install(FILES "${CMAKE_CURRENT_BINARY_DIR}/tools/mootools/mootools-core.js" DESTINATION "${ZM_WEBDIR}/tools/mootools") + install(FILES "${CMAKE_CURRENT_BINARY_DIR}/tools/mootools/mootools-more.js" DESTINATION "${ZM_WEBDIR}/tools/mootools") +endif(NOT (CMAKE_BINARY_DIR STREQUAL CMAKE_SOURCE_DIR))