Add verbose message for when ECM is not found.

This commit is contained in:
Jeremy Whiting 2015-05-13 21:02:45 -06:00
parent dedc3cc9ae
commit 2fe0f77feb

View File

@ -3,10 +3,14 @@ cmake_minimum_required(VERSION 2.8.12)
project(Plasma)
# ECM setup
find_package(ECM 5.10.0 REQUIRED NO_MODULE)
include(FeatureSummary)
find_package(ECM 5.10.0 NO_MODULE)
set_package_properties(ECM PROPERTIES TYPE REQUIRED DESCRIPTION "Extra CMake Modules." URL "https://projects.kde.org/projects/kdesupport/extra-cmake-modules")
feature_summary(WHAT REQUIRED_PACKAGES_NOT_FOUND FATAL_ON_MISSING_REQUIRED_PACKAGES)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR})
include(FeatureSummary)
include(GenerateExportHeader)
include(ECMGenerateHeaders)
include(KDEInstallDirs)