From 25ac4bb89d03620431aebeb45f9217dfabf90ec5 Mon Sep 17 00:00:00 2001 From: aneejit1 Date: Tue, 23 Jun 2020 11:15:43 +0000 Subject: Write generated source files to the binary directory instead of the source Signed-off-by: aneejit1 --- kbruch/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kbruch/CMakeLists.txt') 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}\"" ) -- cgit v1.2.1