mirror of
https://github.com/NVIDIA/cuda-samples.git
synced 2026-10-25 22:28:17 +08:00
Update copy_directory_if_different to copy_directory for CMake 3.20 compatibility
This commit is contained in:
@@ -48,7 +48,7 @@ target_compile_features(FilterBorderControlNPP PRIVATE cxx_std_17 cuda_std_17)
|
||||
|
||||
# Copy data files to output directory
|
||||
add_custom_command(TARGET FilterBorderControlNPP POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_directory_if_different
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_directory
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/data
|
||||
${CMAKE_CURRENT_BINARY_DIR}/data
|
||||
)
|
||||
|
||||
@@ -35,7 +35,7 @@ target_link_libraries(nvJPEG PRIVATE
|
||||
|
||||
# Copy data to the output directory
|
||||
add_custom_command(TARGET nvJPEG POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_directory_if_different
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_directory
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/images
|
||||
${CMAKE_CURRENT_BINARY_DIR}/images
|
||||
)
|
||||
|
||||
@@ -35,13 +35,13 @@ target_link_libraries(nvJPEG_encoder PRIVATE
|
||||
|
||||
# Copy data to the output directory
|
||||
add_custom_command(TARGET nvJPEG_encoder POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_directory_if_different
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_directory
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/images
|
||||
${CMAKE_CURRENT_BINARY_DIR}/images
|
||||
)
|
||||
|
||||
add_custom_command(TARGET nvJPEG_encoder POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_directory_if_different
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_directory
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/encode_output
|
||||
${CMAKE_CURRENT_BINARY_DIR}/encode_output
|
||||
)
|
||||
|
||||
@@ -43,7 +43,7 @@ target_compile_features(oceanFFT PRIVATE cxx_std_17 cuda_std_17)
|
||||
|
||||
# Copy clock_kernel.cu to the output directory
|
||||
add_custom_command(TARGET oceanFFT POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_directory_if_different
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_directory
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/data
|
||||
${CMAKE_CURRENT_BINARY_DIR}/data
|
||||
)
|
||||
|
||||
@@ -44,7 +44,7 @@ target_compile_features(randomFog PRIVATE cxx_std_17 cuda_std_17)
|
||||
|
||||
# Copy clock_kernel.cu to the output directory
|
||||
add_custom_command(TARGET randomFog POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_directory_if_different
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_directory
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/data
|
||||
${CMAKE_CURRENT_BINARY_DIR}/data
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user