Skip to content
This repository was archived by the owner on Jul 22, 2026. It is now read-only.

Commit 2f57a79

Browse files
committed
Fix Windows warning flags for icpx
1 parent ba9932b commit 2f57a79

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,11 @@ if(MSVC)
162162
add_compile_options(/wd4267 /wd4244 /wd4127 /wd4324)
163163
endif()
164164

165-
if (NOT WIN32)
165+
if(NOT WIN32
166+
OR (DEFINED CMAKE_C_COMPILER_FRONTEND_VARIANT
167+
AND DEFINED CMAKE_CXX_COMPILER_FRONTEND_VARIANT
168+
AND NOT CMAKE_C_COMPILER_FRONTEND_VARIANT STREQUAL "MSVC"
169+
AND NOT CMAKE_CXX_COMPILER_FRONTEND_VARIANT STREQUAL "MSVC"))
166170
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Werror")
167171
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Werror")
168172
else()

0 commit comments

Comments
 (0)