Write generated source files to the binary directory instead of the source

Signed-off-by: aneejit1 <aneejit1@gmail.com>
(cherry picked from commit 25ac4bb89d)
r14.0.x
aneejit1 4 years ago committed by Slávek Banko
parent 0d44e4878f
commit 416a0837c3
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -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}\""
)

@ -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

Loading…
Cancel
Save