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 5e1ecfc commit cd0e912Copy full SHA for cd0e912
CMakeLists.txt
@@ -102,13 +102,16 @@ else()
102
-Wno-padded
103
-Wno-reserved-id-macro
104
-Wno-reserved-identifier
105
- -Wno-return-type # VRS fails this
106
-Wno-unknown-warning-option # Otherwise older clang will complain about `-Wno-unsafe-buffer-usage`
107
-Wno-unsafe-buffer-usage # Not sure why we need this, but we do.
108
-Wno-unused-macros
109
)
110
endif()
111
+ target_compile_options(${TARGET_NAME} PRIVATE
112
+ -Wno-return-type # VRS fails this
113
+ )
114
+
115
# CMAKE_COMPILE_WARNING_AS_ERROR is only directly supported starting in CMake `3.24`
116
# https://cmake.org/cmake/help/latest/prop_tgt/COMPILE_WARNING_AS_ERROR.html
117
if(CMAKE_COMPILE_WARNING_AS_ERROR)
0 commit comments