https://git.reactos.org/?p=reactos.git;a=commitdiff;h=2ee150c374d16beb94b2aa966ec3740db674f51a

commit 2ee150c374d16beb94b2aa966ec3740db674f51a
Author:     Serge Gautherie <[email protected]>
AuthorDate: Fri May 11 05:57:10 2018 +0200
Commit:     Mark Jansen <[email protected]>
CommitDate: Fri Aug 17 14:03:59 2018 +0200

    [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 3b6235d9cb..90e76be2f5 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)
 

Reply via email to