summaryrefslogtreecommitdiffstats
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
parenteed53a41187cad950af11bc8d2162913eae757a8 (diff)
downloadtdeedu-25ac4bb8.tar.gz
tdeedu-25ac4bb8.zip
Write generated source files to the binary directory instead of the source
Signed-off-by: aneejit1 <aneejit1@gmail.com>
-rw-r--r--kbruch/CMakeLists.txt2
-rw-r--r--kig/CMakeLists.txt2
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