Skip to content

Commit

Permalink
Copy config only if it's absent
Browse files Browse the repository at this point in the history
  • Loading branch information
eodus committed May 23, 2017
1 parent 2469122 commit eb98ca1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions configs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ file(GLOB config_templates "*/*.template")
foreach(config_template ${config_templates})
# Remove extention
STRING(REGEX REPLACE "\\.template$" "" config ${config_template})
configure_file("${config_template}"
"${config}"
@ONLY)
if(NOT EXISTS "${config}")
configure_file("${config_template}"
"${config}"
@ONLY)
endif()
endforeach()

0 comments on commit eb98ca1

Please sign in to comment.