summaryrefslogtreecommitdiffstats
path: root/kbruch
diff options
context:
space:
mode:
authoraneejit1 <aneejit1@gmail.com>2020-06-23 11:15:43 +0000
committeraneejit1 <aneejit1@gmail.com>2020-06-23 11:16:36 +0000
commit25ac4bb89d03620431aebeb45f9217dfabf90ec5 (patch)
treedda1f02dcfdc83c07ea6e2d6447bcd0878054349 /kbruch
parenteed53a41187cad950af11bc8d2162913eae757a8 (diff)
downloadtdeedu-25ac4bb89d03620431aebeb45f9217dfabf90ec5.tar.gz
tdeedu-25ac4bb89d03620431aebeb45f9217dfabf90ec5.zip
Write generated source files to the binary directory instead of the source
Signed-off-by: aneejit1 <aneejit1@gmail.com>
Diffstat (limited to 'kbruch')
-rw-r--r--kbruch/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/kbruch/CMakeLists.txt b/kbruch/CMakeLists.txt
index 192ddd69..bea4ba49 100644
--- a/kbruch/CMakeLists.txt
+++ b/kbruch/CMakeLists.txt
@@ -3,6 +3,6 @@ add_subdirectory( testcases )
file( STRINGS "VERSION" _KBRUCH_VERSION )
-file( WRITE ${CMAKE_CURRENT_SOURCE_DIR}/src/version.h
+file( WRITE ${CMAKE_CURRENT_BINARY_DIR}/src/version.h
"#undef KBRUCH_VERSION\n#define KBRUCH_VERSION \"${_KBRUCH_VERSION}\""
)