From c8a78967418076d582f1307bed79439bf18bf68b Mon Sep 17 00:00:00 2001 From: aneejit1 Date: Fri, 26 Jun 2020 03:50:20 +0000 Subject: Write version.txt and rosegarden.spec to the binary directory Signed-off-by: aneejit1 --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index f10008a..8fc581b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -116,8 +116,8 @@ tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po ) configure_file( config.h.cmake config.h @ONLY ) # create and install the version file -FILE(WRITE version.txt "${VERSION}\n") -INSTALL( FILES version.txt DESTINATION ${DATA_INSTALL_DIR}/rosegarden ) +FILE(WRITE "${CMAKE_BINARY_DIR}/version.txt" "${VERSION}\n") +INSTALL( FILES "${CMAKE_BINARY_DIR}/version.txt" DESTINATION ${DATA_INSTALL_DIR}/rosegarden ) # configure the RPM spec -CONFIGURE_FILE("${CMAKE_SOURCE_DIR}/rosegarden.spec.in" "${CMAKE_SOURCE_DIR}/rosegarden.spec" IMMEDIATE @ONLY) \ No newline at end of file +CONFIGURE_FILE("${CMAKE_SOURCE_DIR}/rosegarden.spec.in" "${CMAKE_BINARY_DIR}/rosegarden.spec" IMMEDIATE @ONLY) -- cgit v1.2.1