diff options
author | aneejit1 <aneejit1@gmail.com> | 2020-06-23 11:15:43 +0000 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2020-06-24 01:38:03 +0200 |
commit | 416a0837c3221460f765f785dbe8284067c02008 (patch) | |
tree | e1f36fbcc314ac1dd2c833e01bf46ff96a22463c | |
parent | 0d44e4878f35ad297f0e9d8e7bad0fb6299816c9 (diff) | |
download | tdeedu-416a0837c3221460f765f785dbe8284067c02008.tar.gz tdeedu-416a0837c3221460f765f785dbe8284067c02008.zip |
Write generated source files to the binary directory instead of the source
Signed-off-by: aneejit1 <aneejit1@gmail.com>
(cherry picked from commit 25ac4bb89d03620431aebeb45f9217dfabf90ec5)
-rw-r--r-- | kbruch/CMakeLists.txt | 2 | ||||
-rw-r--r-- | 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 |