try to add CMAKE_PREFIX_PATH to CMAKE_MODULE_PATH

This commit is contained in:
Marco Martin 2013-02-04 21:34:04 +01:00
parent b4669ab783
commit 2b45de0e96

View File

@ -12,7 +12,7 @@ find_package(ECM 0.0.6 REQUIRED NO_MODULE)
# where to look first for cmake modules, before ${CMAKE_ROOT}/Modules/ is checked
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_INSTALL_PREFIX}/share/cmake/modules" "${CMAKE_SOURCE_DIR}/cmake/modules" ${ECM_MODULE_PATH})
find_path(KDE_MODULES_DIR NAMES KDE4Macros.cmake PATH_SUFFIXES share/cmake/modules)
find_path(KDE_MODULES_DIR NAMES KDE4Macros.cmake PATH_SUFFIXES share/cmake/modules ${CMAKE_PREFIX_PATH})
add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS})