mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 14:21:16 +00:00
Prospective fix for macos ctest not finding Qt
Not sure how this could happen, but we should be able to limit the rpath workaround to Linux
This commit is contained in:
parent
29f930d733
commit
c68405d4dd
1 changed files with 5 additions and 1 deletions
|
@ -137,5 +137,9 @@ if(BUILD_TESTING)
|
||||||
add_executable(api_tests tests/tests.cpp)
|
add_executable(api_tests tests/tests.cpp)
|
||||||
target_link_libraries(api_tests PRIVATE SixtyFPS Catch2::Catch2)
|
target_link_libraries(api_tests PRIVATE SixtyFPS Catch2::Catch2)
|
||||||
add_test(api_tests ${CMAKE_CURRENT_BINARY_DIR}/api_tests)
|
add_test(api_tests ${CMAKE_CURRENT_BINARY_DIR}/api_tests)
|
||||||
|
# Somehow the wrong relative rpath ends up in the binary, requiring us to change the
|
||||||
|
# working directory.
|
||||||
|
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
||||||
set_property(TEST api_tests PROPERTY WORKING_DIRECTORY "${CMAKE_BINARY_DIR}")
|
set_property(TEST api_tests PROPERTY WORKING_DIRECTORY "${CMAKE_BINARY_DIR}")
|
||||||
endif()
|
endif()
|
||||||
|
endif()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue