diff options
author | Alwin Esch <alwin.esch@web.de> | 2017-06-18 12:47:58 +0200 |
---|---|---|
committer | Alwin Esch <alwin.esch@web.de> | 2017-06-19 10:30:31 +0200 |
commit | 92f7814baa4bc1f5610d23be403e6ccaae14b71f (patch) | |
tree | b524da53b4dfe8fd2c0634976f2b9eee11a75432 /cmake/scripts/common/Macros.cmake | |
parent | 3fd962665e5ab8dd12033003781f29ffd5d0551a (diff) |
[cmake] only add addon.xml.in as addon.xml to install_data and nothing else!
This fix a bad problem if normal install want to install a directory who was wrongly from
before as file.
Diffstat (limited to 'cmake/scripts/common/Macros.cmake')
-rw-r--r-- | cmake/scripts/common/Macros.cmake | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cmake/scripts/common/Macros.cmake b/cmake/scripts/common/Macros.cmake index 4b6f890443..8bee3dadad 100644 --- a/cmake/scripts/common/Macros.cmake +++ b/cmake/scripts/common/Macros.cmake @@ -706,13 +706,13 @@ macro(find_addon_xml_in_files) foreach(loop_var ${ADDON_FILES}) if(loop_var MATCHES "addon.xml.in") string(REPLACE "addon.xml.in" "addon.xml" loop_var ${loop_var}) - endif() - list(GET loop_var 0 file_name) - string(REPLACE "${CORE_SOURCE_DIR}/" "" file_name ${file_name}) - list(APPEND ADDON_INSTALL_DATA "${file_name}") + list(GET loop_var 0 file_name) + string(REPLACE "${CORE_SOURCE_DIR}/" "" file_name ${file_name}) + list(APPEND ADDON_INSTALL_DATA "${file_name}") - unset(file_name) + unset(file_name) + endif() endforeach() unset(xml_name) endforeach() |