diff options
author | Daniel Poelzleithner <git@poelzi.org> | 2020-11-05 00:16:56 +0100 |
---|---|---|
committer | Daniel Poelzleithner <git@poelzi.org> | 2020-11-05 00:16:56 +0100 |
commit | 4b12fefcdb98d363f6122d9d6b239e6f3bada85a (patch) | |
tree | 388c6cf70f4904d05a310175c171163f5d59b827 /CMakeLists.txt | |
parent | 50db889d21e2de13edce2731a258b8536e20e71c (diff) |
Cmake: fix copy of resource directories.
copy_if_changed does not work on directories.
now resources are copied correctly into build directory.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 00679ec6f4..9d50d5d351 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1372,7 +1372,7 @@ if(UNIX AND USE_SYMLINKS) ) else() add_custom_target(mixxx-testdata - COMMAND ${CMAKE_COMMAND} -E copy_if_different "${CMAKE_CURRENT_SOURCE_DIR}/src/test" "${CMAKE_CURRENT_BINARY_DIR}/src" + COMMAND ${CMAKE_COMMAND} -E copy_directory "${CMAKE_CURRENT_SOURCE_DIR}/src/test" "${CMAKE_CURRENT_BINARY_DIR}/src/test" COMMENT "Copying test data to build directory..." ) endif() @@ -1402,11 +1402,11 @@ if(UNIX AND USE_SYMLINKS) ) else() add_custom_target(mixxx-res - COMMAND ${CMAKE_COMMAND} -E copy_if_different "${CMAKE_CURRENT_SOURCE_DIR}/res" "${CMAKE_CURRENT_BINARY_DIR}/" + COMMAND ${CMAKE_COMMAND} -E copy_directory "${CMAKE_CURRENT_SOURCE_DIR}/res" "${CMAKE_CURRENT_BINARY_DIR}/res" COMMENT "Copying resources to build directory..." ) add_custom_target(mixxx-script - COMMAND ${CMAKE_COMMAND} -E copy_if_different "${CMAKE_CURRENT_SOURCE_DIR}/script" "${CMAKE_CURRENT_BINARY_DIR}/" + COMMAND ${CMAKE_COMMAND} -E copy_directory "${CMAKE_CURRENT_SOURCE_DIR}/script" "${CMAKE_CURRENT_BINARY_DIR}/script" COMMENT "Copying QScriptEngine extensions to build directory..." ) endif() |