Skip to content

Commit

Permalink
Disable warning on MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
dsharlet committed Feb 19, 2025
1 parent 951240c commit 585faa1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,8 @@ IF(CMAKE_C_COMPILER_ID STREQUAL "MSVC")
# Test files have many sections, increase the limit. See
# https://learn.microsoft.com/en-us/cpp/build/reference/bigobj-increase-number-of-sections-in-dot-obj-file.
ADD_COMPILE_OPTIONS("/bigobj")
# Our float16 datatypes have constructors in C++ and not in C, which prompts a warning in MSVC
ADD_COMPILE_OPTIONS("/wd4190")
ENDIF()

IF(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
Expand Down

0 comments on commit 585faa1

Please sign in to comment.