aboutsummaryrefslogtreecommitdiffstats
path: root/cmake/configure_file.cmake
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-06-21 09:31:13 +0000
committerRonan Le Martret <ronan.lemartret@iot.bzh>2017-06-21 17:04:13 +0200
commitff516d186889808ff61358c6ea8f88662401acaa (patch)
tree582e78fd34efe6ab711e84c5eafbcdfd3e56e8cd /cmake/configure_file.cmake
parent0daaff3b597af4e656c8cd274c28a46d70e88963 (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})