feat(CMake): crash on non-MSVC compilers (#2819)

This commit is contained in:
Andreas Maerten 2024-03-12 09:35:36 +01:00 committed by GitHub
parent d75664ec3f
commit cc930b6252

View File

@ -2,6 +2,10 @@ cmake_minimum_required(VERSION 3.20)
project(YimMenu CXX ASM_MASM)
if (NOT MSVC)
message(FATAL_ERROR "Unsupported compiler used '${CMAKE_CXX_COMPILER_ID}', YimMenu only supports MSVC.")
endif()
set(SRC_DIR "${PROJECT_SOURCE_DIR}/src")
# Git commit embed