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 a10f7ef53e
commit 10fc7a5e13
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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