From 2ee150c374d16beb94b2aa966ec3740db674f51a Mon Sep 17 00:00:00 2001 From: Serge Gautherie Date: Fri, 11 May 2018 05:57:10 +0200 Subject: [PATCH] [REACTOS] Warn if not using RosBE custom CMake Better be explicit immediately, than fail later without a clue. Thanks to Yuntian Zhang for initial code, adapted by me. CORE-14607 --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3b6235d9cb6..90e76be2f5e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,6 +2,10 @@ cmake_minimum_required(VERSION 3.2.1) cmake_policy(VERSION 3.2.1) +if(NOT CMAKE_VERSION MATCHES "ReactOS") + message(WARNING "Building with \"${CMAKE_COMMAND}\", which is not the custom CMake included in RosBE, might cause build issues...") +endif() + # Don't escape preprocessor definition values added via add_definitions cmake_policy(SET CMP0005 OLD)