summaryrefslogtreecommitdiffstats
path: root/cmake/configure_file.cmake
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-06-21 09:31:13 +0000
committerRomain Forlot <romain.forlot@iot.bzh>2018-10-15 18:22:47 +0200
commit61fb86f72ffc2b9eb058d6e83d270480ae8db6bb (patch)
tree7a3a88cde005e18c934676f43b1612231773d0ac /cmake/configure_file.cmake
parente48460055b2673733ac12bdb15dde2c6e2e4eb26 (diff)
Configure file at build time with separated target
Change-Id: I0464897b830e926bb173c9b80ef7682ff47ecb5b Signed-off-by: Romain Forlot <romain.forlot@iot.bzh> Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh>
Diffstat (limited to 'cmake/configure_file.cmake')
-rw-r--r--cmake/configure_file.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmake/configure_file.cmake b/cmake/configure_file.cmake
new file mode 100644
index 0000000..44ff7fc
--- /dev/null
+++ b/cmake/configure_file.cmake
@@ -0,0 +1,2 @@
+include(${CMAKE_BINARY_DIR}/CMakeCacheForScript.cmake)
+configure_file(${INFILE} ${OUTFILE})