From 4e9ef4e8e61fb0fe459dc9055877bffacd2a14be Mon Sep 17 00:00:00 2001 From: Scott K Logan Date: Mon, 13 Jan 2020 16:40:33 -0800 Subject: [PATCH] Don't install test resources Rather copy them to the binary dir. This avoids installing the resources, which is affected by the DESTDIR variable. The file(COPY) operation happens at configure-time rather than install-time, which means that installation is no longer required to run the tests. --- rcl/test/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rcl/test/CMakeLists.txt b/rcl/test/CMakeLists.txt index 401cc3b62c..154e11e684 100644 --- a/rcl/test/CMakeLists.txt +++ b/rcl/test/CMakeLists.txt @@ -309,5 +309,5 @@ rcl_add_custom_gtest(test_security_directory ) # Install test resources -install(DIRECTORY ${test_resources_dir_name} - DESTINATION ${CMAKE_CURRENT_BINARY_DIR}) +file(COPY ${test_resources_dir_name} + DESTINATION ${CMAKE_CURRENT_BINARY_DIR})