We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 959f0a9 commit ff7c065Copy full SHA for ff7c065
CMakeLists.txt
@@ -70,6 +70,12 @@ if(VISP_DEV OR VISP_CI)
70
set(VISP_WARNINGS -Wall -Wextra -Wpedantic -Werror)
71
endif()
72
73
+# Suppress warnings for external libraries
74
+if(MSVC)
75
+ set(VISP_NO_WARNINGS /W0)
76
+else()
77
+ set(VISP_NO_WARNINGS -w)
78
+endif()
79
80
# Dependencies
81
depend/stb/CMakeLists.txt
@@ -9,4 +9,5 @@ FetchContent_MakeAvailable(stb)
9
10
add_library(stb STATIC stb.cpp)
11
target_include_directories(stb PUBLIC ${stb_SOURCE_DIR})
12
+target_compile_options(stb PRIVATE ${VISP_NO_WARNINGS})
13
set_target_properties(stb PROPERTIES POSITION_INDEPENDENT_CODE ON)
0 commit comments