Fixes
This commit is contained in:
@ -23,8 +23,6 @@ message(STATUS "Configured IACore for Multi-Config (Debug/Release rules generate
|
||||
message(STATUS "Detected Compiler ID: ${CMAKE_CXX_COMPILER_ID}")
|
||||
# Check if the compiler is MSVC (cl.exe), but allow Clang acting like MSVC (clang-cl)
|
||||
if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
|
||||
# Note: clang-cl usually reports itself as "Clang" in newer CMake versions,
|
||||
# but if it reports MSVC with a Clang simulation, we want to allow it.
|
||||
if (NOT CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||
message(FATAL_ERROR
|
||||
"\n\n"
|
||||
@ -40,7 +38,6 @@ endif()
|
||||
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER_ID MATCHES "GNU")
|
||||
add_compile_options(
|
||||
-Wall -Wextra -Wpedantic
|
||||
# Suppress warning for the statement expression macro if -pedantic is on
|
||||
-Wno-language-extension-token
|
||||
)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user