mirror of
https://invent.kde.org/system/dolphin
synced 2024-06-30 15:36:30 +00:00
Fix build with cmake >= 3.28
Proposed by krop on #kde-devel
Unless my bisect skills failed broken by ebc9e448b3
This commit is contained in:
parent
acbc78f8ba
commit
792a92befe
|
@ -9,7 +9,7 @@
|
|||
set(FINDGEM_MODULES_DIR ${CMAKE_CURRENT_LIST_DIR})
|
||||
|
||||
function(find_gem GEM_NAME)
|
||||
set(GEM_PACKAGE "Gem:${GEM_NAME}")
|
||||
set(GEM_PACKAGE "Gem_${GEM_NAME}")
|
||||
|
||||
configure_file(${FINDGEM_MODULES_DIR}/FindGem.cmake.in Find${GEM_PACKAGE}.cmake @ONLY)
|
||||
|
||||
|
|
|
@ -70,10 +70,10 @@ LINK_LIBRARIES dolphinprivate dolphinstatic Qt6::Test)
|
|||
ecm_add_test(draganddrophelpertest.cpp LINK_LIBRARIES dolphinprivate Qt6::Test)
|
||||
|
||||
find_gem(test-unit)
|
||||
set_package_properties(Gem:test-unit PROPERTIES
|
||||
set_package_properties(Gem_test-unit PROPERTIES
|
||||
TYPE RECOMMENDED
|
||||
DESCRIPTION "Ruby gem 'test-unit' required for testing of servicemenu helpers.")
|
||||
if (Gem:test-unit_FOUND)
|
||||
if (Gem_test-unit_FOUND)
|
||||
add_test(NAME servicemenutest
|
||||
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/../settings/contextmenu/test/test_run.rb)
|
||||
endif()
|
||||
|
|
Loading…
Reference in New Issue
Block a user