Skip to content

Commit

Permalink
install_relocatable only installs files that exist
Browse files Browse the repository at this point in the history
  • Loading branch information
robertmaynard committed Mar 23, 2023
1 parent 21b55df commit 25d71f2
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions rapids-cmake/test/install_relocatable.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,16 @@ function(rapids_test_install_relocatable)

# We need to install the rapids-test gpu detector, and the json script we also need to write out /
# install the new CTestTestfile.cmake
install(PROGRAMS "${PROJECT_BINARY_DIR}/rapids-cmake/${rapids_test_generate_exe_name}"
COMPONENT ${_RAPIDS_TEST_INSTALL_COMPONENT_SET} DESTINATION ${_RAPIDS_TEST_DESTINATION}
${to_exclude})
install(FILES "${CMAKE_CURRENT_FUNCTION_LIST_DIR}/detail/run_gpu_test.cmake"
COMPONENT ${_RAPIDS_TEST_INSTALL_COMPONENT_SET} DESTINATION ${_RAPIDS_TEST_DESTINATION}
${to_exclude})
if(EXISTS "${PROJECT_BINARY_DIR}/rapids-cmake/${rapids_test_generate_exe_name}")
install(PROGRAMS "${PROJECT_BINARY_DIR}/rapids-cmake/${rapids_test_generate_exe_name}"
COMPONENT ${_RAPIDS_TEST_INSTALL_COMPONENT_SET} DESTINATION ${_RAPIDS_TEST_DESTINATION}
${to_exclude})
endif()
if(EXISTS "${CMAKE_CURRENT_FUNCTION_LIST_DIR}/detail/run_gpu_test.cmake")
install(FILES "${CMAKE_CURRENT_FUNCTION_LIST_DIR}/detail/run_gpu_test.cmake"
COMPONENT ${_RAPIDS_TEST_INSTALL_COMPONENT_SET} DESTINATION ${_RAPIDS_TEST_DESTINATION}
${to_exclude})
endif()
if(targets_to_install)
install(TARGETS ${targets_to_install} COMPONENT ${_RAPIDS_TEST_INSTALL_COMPONENT_SET}
DESTINATION ${_RAPIDS_TEST_DESTINATION} ${to_exclude})
Expand Down

0 comments on commit 25d71f2

Please sign in to comment.