diff options
Diffstat (limited to 'vcpkg/ports/libmultisense/0002-disable-error-on-warning.patch')
| -rw-r--r-- | vcpkg/ports/libmultisense/0002-disable-error-on-warning.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/vcpkg/ports/libmultisense/0002-disable-error-on-warning.patch b/vcpkg/ports/libmultisense/0002-disable-error-on-warning.patch new file mode 100644 index 0000000..e22d961 --- /dev/null +++ b/vcpkg/ports/libmultisense/0002-disable-error-on-warning.patch @@ -0,0 +1,20 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 333d8ca..d0e6160 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -24,6 +24,7 @@ project(LibMultiSense + + include (CheckCXXSourceCompiles) + ++if(0) + if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") + string (REGEX REPLACE "/W3" "/W4" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}") + string (REGEX REPLACE "/W3" "/W4" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}") +@@ -41,6 +42,7 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR CMAKE_CXX_COMPILER_ID STREQUAL "Ap + # + add_compile_options(-Wno-gnu-zero-variadic-macro-arguments) + endif() ++endif() + + option(BUILD_LEGACY_API "Build the legacy MultiSense API. Defaults to On for backwards compatibility." ON) + option(MULTISENSE_BUILD_UTILITIES "Build MultiSense utility applications. Defaults to ON for backwards compatibility." ON) |