[kcrash] Simplify search for KF5::Crash
This commit is contained in:
parent
e8e284f724
commit
78e601edb4
@ -124,10 +124,8 @@ option( WITH_PYTHONQT "Enable next generation Python modules API (experimental,
|
|||||||
option( WITH_KF5Crash "Enable crash reporting with KCrash." ON )
|
option( WITH_KF5Crash "Enable crash reporting with KCrash." ON )
|
||||||
option( BUILD_TESTING "Build the testing tree." ON )
|
option( BUILD_TESTING "Build the testing tree." ON )
|
||||||
|
|
||||||
find_package( KF5 5.18 COMPONENTS CoreAddons Crash OPTIONAL )
|
find_package( KF5 COMPONENTS CoreAddons Crash )
|
||||||
if( KF5Crash_DIR ) # Why not a _FOUND mechanism?
|
if( NOT KF5Crash_FOUND )
|
||||||
find_package( KF5 5.18 COMPONENTS CoreAddons REQUIRED )
|
|
||||||
else()
|
|
||||||
set( WITH_KF5Crash OFF )
|
set( WITH_KF5Crash OFF )
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user