Skip to content
Snippets Groups Projects
Commit 4501c272 authored by Martin Killenberg's avatar Martin Killenberg
Browse files

Merge branch 'update-project-template' into 'master'

feat(project-template): conf-gen: follow symlinks at builddir creation

See merge request !8
parents 59b32881 c0c5bb0d
No related branches found
No related tags found
1 merge request!8feat(project-template): conf-gen: follow symlinks at builddir creation
......@@ -27,7 +27,10 @@ set(DESTDIR share/ConfigGenerator-${PROJECT_NAME}-${${PROJECT_NAME}_MAJOR_VERSIO
file(GLOB hostlists RELATIVE ${PROJECT_SOURCE_DIR} */hostlist)
foreach(hostlist ${hostlists})
string(REPLACE "/hostlist" "" servertype "${hostlist}")
file(COPY "${PROJECT_SOURCE_DIR}/${servertype}" DESTINATION "${PROJECT_BINARY_DIR}")
# FOLLOW_SYMLINK_CHAIN is necessary to allow symlinks to git-submodules. This is used to create
# "derived" configurations which reuse some files from their base configuration (example: configs for
# different control systems)
file(COPY "${PROJECT_SOURCE_DIR}/${servertype}" DESTINATION "${PROJECT_BINARY_DIR}" FOLLOW_SYMLINK_CHAIN)
list(APPEND servertypes "${servertype}")
endforeach()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment