修复CMakeLists.txt中的MSVC支持检查,并调整代码格式

This commit is contained in:
2025-12-05 23:10:08 +08:00
parent dc222231e6
commit 45162bb934

View File

@@ -7,6 +7,10 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(GTEST_VERSION 1.17.0) set(GTEST_VERSION 1.17.0)
enable_testing() enable_testing()
if (MSVC)
message(FATAL_ERROR "MSVC is not supported. Please use GCC or Clang.")
endif ()
include_directories(include) include_directories(include)
include(FetchContent) include(FetchContent)