Revert "Append to CMAKE_MODULE_PATH instead of fully overwriting it."

Looks like that doesn't work on Linux, guess CMake ignores CMAKE_PREFIX_PATH completely when CMAKE_MODULE_PATH is set

This reverts commit afd4bce57e.
This commit is contained in:
Ben Cooksley 2018-01-22 22:34:38 +13:00
parent afd4bce57e
commit 6ff4dd914e

View file

@ -8,7 +8,7 @@ set(KDECONNECT_VERSION "${KDECONNECT_VERSION_MAJOR}.${KDECONNECT_VERSION_MINOR}.
cmake_minimum_required(VERSION 2.8.12) cmake_minimum_required(VERSION 2.8.12)
find_package(ECM 0.0.9 REQUIRED NO_MODULE) find_package(ECM 0.0.9 REQUIRED NO_MODULE)
list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake) set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR} ${CMAKE_SOURCE_DIR}/cmake)
find_package(Qt5 5.2 REQUIRED COMPONENTS Quick) find_package(Qt5 5.2 REQUIRED COMPONENTS Quick)