Skip to content

Commit

Permalink
Disable false-positive MSVC warning caused by Boost macros
Browse files Browse the repository at this point in the history
  • Loading branch information
pablode committed Mar 7, 2024
1 parent 34d7bd9 commit a3eabe0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ if(MSVC)
# Disable "macro expansion producing 'defined' has undefined behavior" warning
# introduced by indirect inclusion of Windows headers in guc and MikkTSpace.
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /wd5105")
# Disable "not enough arguments for function-like macro invocation" warning caused
# by the transitive inclusion of boost headers and non-conformant MSVC preprocessor
# behaviour. See USD's msvcdefaults.cmake file for a detailed comment.
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4003")
endif()

add_subdirectory(extern)
Expand Down

0 comments on commit a3eabe0

Please sign in to comment.