diff options
author | aneejit1 <[email protected]> | 2020-06-26 03:50:20 +0000 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2020-06-26 16:11:24 +0900 |
commit | e9157b216b504f2ea2db60b7c11055070f07bbc5 (patch) | |
tree | ff45b80781ffb1132b272c259b18f6a868497868 | |
parent | 2af5a206470adb22e2c28ea9edcab24da81360f2 (diff) | |
download | rosegarden-e9157b216b504f2ea2db60b7c11055070f07bbc5.tar.gz rosegarden-e9157b216b504f2ea2db60b7c11055070f07bbc5.zip |
Write version.txt and rosegarden.spec to the binary directory
Signed-off-by: aneejit1 <[email protected]>
(cherry picked from commit c8a78967418076d582f1307bed79439bf18bf68b)
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 3 insertions, 3 deletions
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) |