1
0
mirror of https://invent.kde.org/system/dolphin synced 2024-06-28 14:35:36 +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:
Albert Astals Cid 2023-12-27 11:46:22 +01:00
parent acbc78f8ba
commit 792a92befe
2 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

@ -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()