From cd68657e7b4e14f8843b7b363ec70db922bcde59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20Delgado=20Kr=C3=A4mer?= Date: Thu, 7 Mar 2024 22:23:26 +0100 Subject: [PATCH] cmake: disable false-positive MSVC warning caused by Boost macros --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 70073dd..60bff49 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)