1
0
mirror of https://github.com/clementine-player/Clementine synced 2025-01-27 17:49:19 +01:00

Make the debian/rules generation work when the source dir is the same as the binary dir

This commit is contained in:
David Sansome 2010-07-30 08:13:35 +00:00
parent e54f0a18d9
commit 3f42b27826

View File

@ -11,9 +11,9 @@ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/changelog.in
if(DEB_REWRITE_RULES)
configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/rules.in
${CMAKE_CURRENT_BINARY_DIR}/rules @ONLY)
${CMAKE_CURRENT_BINARY_DIR}/rules.tmp/rules @ONLY)
file(REMOVE ${CMAKE_CURRENT_SOURCE_DIR}/rules)
file(COPY ${CMAKE_CURRENT_BINARY_DIR}/rules
file(COPY ${CMAKE_CURRENT_BINARY_DIR}/rules.tmp/rules
DESTINATION ${CMAKE_CURRENT_SOURCE_DIR}/
FILE_PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ
GROUP_EXECUTE GROUP_READ)