[kpimtextedit] [Bug 430399] cmake searches unused dependency

rezso bugzilla_noreply at kde.org
Sun Dec 20 00:18:02 GMT 2020


https://bugs.kde.org/show_bug.cgi?id=430399

--- Comment #2 from rezso <rezso at rezso.net> ---
I compile all components with -DBUILD_TESTING=FALSE option.
So I think, a conditional search is the best solution:

if(BUILD_TESTING)
   find_package(Qt5 ${QT_REQUIRED_VERSION} CONFIG REQUIRED COMPONENTS Test)
   find_package(KF5IconThemes ${KF5_MIN_VERSION} CONFIG REQUIRED)
   add_definitions(-DBUILD_TESTING)
endif()

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Kdepim-bugs mailing list