Error out if CMake is used on non-Windows.

This does not work (currently) and can result in weird issues in
code editors that try to automatically run CMake if they see a
CMakeLists file.
This commit is contained in:
Sadie Powell 2023-07-13 13:27:14 +01:00
parent 342f94ec22
commit d91d707c6d

View File

@ -2,6 +2,10 @@ cmake_minimum_required(VERSION 3.8 FATAL_ERROR)
project(InspIRCd CXX)
if(NOT WIN32)
message(FATAL_ERROR "CMake can only be used on Windows!")
endif()
set(CONFIG_DIR "conf" CACHE PATH "Configuration file path")
set(MODULE_DIR "modules" CACHE PATH "Module path")
set(DATA_DIR "data" CACHE PATH "Data path")