summaryrefslogtreecommitdiffstats
path: root/cmake/cmake.d/02-macros.cmake
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-07-07 12:04:20 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2018-10-15 18:22:47 +0200
commit3aa6c913a88f129413f9f66ba7dd97142e25e9b7 (patch)
tree4186699530fcce55a815994207226db8447427cc /cmake/cmake.d/02-macros.cmake
parentac1959f4cc99976e28fd121132ff290d9a709af6 (diff)
Fix: wrong extension of configured files
Remove the ".in" template extension from filenames which have to be correctly named. Change-Id: I8128f5fa64d5fa914a717c18fbba14fc43de4935 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'cmake/cmake.d/02-macros.cmake')
-rw-r--r--cmake/cmake.d/02-macros.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/cmake.d/02-macros.cmake b/cmake/cmake.d/02-macros.cmake
index fd0c43b..7444214 100644
--- a/cmake/cmake.d/02-macros.cmake
+++ b/cmake/cmake.d/02-macros.cmake
@@ -42,6 +42,7 @@ macro(configure_files_in_dir dir)
foreach(file ${filelist})
get_filename_component(filename ${file} NAME)
string(REGEX REPLACE "target" "${RSYNC_TARGET}" destinationfile ${filename})
+ string(REGEX REPLACE ".in$" "" destinationfile ${destinationfile})
configure_file(${file} ${CMAKE_CURRENT_BINARY_DIR}/target/${destinationfile})
endforeach()
endmacro(configure_files_in_dir)