[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
This commit is contained in:
Serge Gautherie 2018-05-11 05:57:10 +02:00 committed by Mark Jansen
parent 12e8d7fe0e
commit 2ee150c374

View file

@ -2,6 +2,10 @@
cmake_minimum_required(VERSION 3.2.1) cmake_minimum_required(VERSION 3.2.1)
cmake_policy(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 # Don't escape preprocessor definition values added via add_definitions
cmake_policy(SET CMP0005 OLD) cmake_policy(SET CMP0005 OLD)