CMake: fix CMake 2.6 compatibility

... by replacing CONFIG by NO_MODULE option in find package

From the manual: "The CONFIG option may be used to skip Module mode
explicitly and switch to Config mode. It is synonymous to using
NO_MODULE."
This commit is contained in:
Daniel Molkentin 2015-11-30 01:05:12 +01:00
parent 499400916d
commit 48097467f9

View file

@ -6,7 +6,7 @@ add_subdirectory(icons)
if( UNIX AND NOT APPLE )
add_subdirectory(nautilus)
find_package(ECM 1.2.0 CONFIG QUIET)
find_package(ECM 1.2.0 NO_MODULE QUIET)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR} "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
find_package(KF5 "5.16" COMPONENTS KIO)
if(KF5_FOUND)