Skip to content

Commit 18ea255

Browse files
committed
Add Qt libraries directory to LD_LIBRARY_PATH
This is to let QtKeychain find the dbus library.
1 parent 25e5c22 commit 18ea255

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/owncloud_add_test.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ function(owncloud_add_test test_class)
2323
target_include_directories(${OWNCLOUD_TEST_CLASS}Test PRIVATE "${CMAKE_SOURCE_DIR}/test/")
2424
if (UNIX AND NOT APPLE)
2525
set_property(TEST ${OWNCLOUD_TEST_CLASS}Test PROPERTY ENVIRONMENT "QT_QPA_PLATFORM=offscreen")
26+
set_property(TEST ${OWNCLOUD_TEST_CLASS}Test PROPERTY ENVIRONMENT "LD_LIBRARY_PATH=$ENV{LD_LIBRARY_PATH}:${qt_LIB_DIRS_RELEASE}")
2627
endif()
2728

2829
if(WIN32)

0 commit comments

Comments
 (0)