Skip to content

Commit eb659d8

Browse files
committed
Append to RPATH for tests to find CSP shared libs
Signed-off-by: Adam Glustein <[email protected]>
1 parent a284577 commit eb659d8

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

cpp/tests/core/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
enable_testing()
22
find_package(GTest CONFIG REQUIRED)
33

4+
list(APPEND CMAKE_INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib)
5+
46
add_executable(test_basic_allocator test_basic_allocator.cpp)
57
target_link_libraries(test_basic_allocator GTest::gtest GTest::gtest_main)
68

cpp/tests/engine/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
find_package(GTest CONFIG REQUIRED)
22

3+
list(APPEND CMAKE_INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib)
4+
35
add_executable(test_dictionary test_dictionary.cpp )
46
target_link_libraries(test_dictionary csp_engine GTest::gtest GTest::gtest_main)
57
# For DialectGeneric impl registration ( needed on windows to get it exported )

0 commit comments

Comments
 (0)