From 7900281e56efcd88a538905ac434da530a231d4b Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 16 May 2016 13:10:34 +0200 Subject: cmake: check for build directory sanity before declaring the project This does the check before compiler tests, spewing less crapola into the source directory. --- CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1d8d5aef..5213721f 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,9 +1,10 @@ +set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake/) +include(opentrack-check-build-directory) + project(opentrack) cmake_minimum_required(VERSION 2.8.11) -set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake/) include(CMakeParseArguments) -include(opentrack-check-build-directory) include(opentrack-policy) include(opentrack-qt) include(opentrack-platform) -- cgit v1.2.3