another attempt in setting module paths

This commit is contained in:
Marco Martin 2013-02-04 21:37:07 +01:00
parent 2b45de0e96
commit 78689b3d40

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 ${CMAKE_PREFIX_PATH})
find_path(KDE_MODULES_DIR NAMES KDE4Macros.cmake PATH_SUFFIXES share/cmake/modules "${CMAKE_PREFIX_PATH}/share/cmake/modules")
add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS})