Skip to content

Commit

Permalink
Don't install test resources
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
cottsay committed Jan 14, 2020
1 parent 024c3ee commit 4e9ef4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rcl/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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})

0 comments on commit 4e9ef4e

Please sign in to comment.