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 +- kig/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 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}\"" ) diff --git a/kig/CMakeLists.txt b/kig/CMakeLists.txt index 1fd286ab..d1365c12 100644 --- a/kig/CMakeLists.txt +++ b/kig/CMakeLists.txt @@ -28,7 +28,7 @@ link_directories( ##### libkigpart (kpart) -file( WRITE dummy.cpp "" ) +file( WRITE ${CMAKE_CURRENT_BINARY_DIR}/dummy.cpp "" ) tde_add_kpart( libkigpart AUTOMOC -- cgit v1.2.1