CMake: fix CMake 2.6 compatibility
authorDaniel Molkentin <danimo@owncloud.com>
Mon, 30 Nov 2015 00:05:12 +0000 (01:05 +0100)
committerDaniel Molkentin <danimo@owncloud.com>
Mon, 30 Nov 2015 00:05:12 +0000 (01:05 +0100)
... 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."

shell_integration/CMakeLists.txt

index 3d3ebf883893f10a3c40acc0c9892965e264cbba..081f8eed0cc5cb95cca30a6192d47c0be7f0b935 100644 (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)