Adding path to CMAKE_MODULE_PATH is ok all the time
We don't need to protect the build system against adding extra directories in the CMAKE_MODULE_PATH This also prepares kde-workspace to be build with a simple CMakeLists.txt in the root directory.
This commit is contained in:
parent
4ab55976d8
commit
92c9c514b8
1 changed files with 1 additions and 4 deletions
|
@ -3,10 +3,7 @@ project(KWIN)
|
||||||
cmake_minimum_required(VERSION 2.8.12 FATAL_ERROR)
|
cmake_minimum_required(VERSION 2.8.12 FATAL_ERROR)
|
||||||
set(QT_MIN_VERSION "5.2.0")
|
set(QT_MIN_VERSION "5.2.0")
|
||||||
|
|
||||||
# TODO: remove if once we are split
|
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules ${CMAKE_MODULE_PATH} )
|
||||||
if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
|
|
||||||
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules ${CMAKE_MODULE_PATH} )
|
|
||||||
endif()
|
|
||||||
|
|
||||||
find_package(ECM 0.0.11 REQUIRED NO_MODULE)
|
find_package(ECM 0.0.11 REQUIRED NO_MODULE)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue