File tree Expand file tree Collapse file tree 3 files changed +3
-6
lines changed Expand file tree Collapse file tree 3 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -168,7 +168,7 @@ set( VVDEC_ENABLE_BUILD_TYPE_POSTFIX OFF CACHE BOOL "Enable or disable
168
168
169
169
set ( VVDEC_ENABLE_LINK_TIME_OPT ON CACHE BOOL "Enable link time optimization for release and profile builds" )
170
170
171
- set ( VVDEC_ENABLE_WARNINGS_AS_WERROR ON CACHE BOOL "Treat warnings as errors (-Werror or /WX)" )
171
+ set ( VVDEC_ENABLE_WERROR ON CACHE BOOL "Treat warnings as errors (-Werror or /WX)" )
172
172
173
173
if ( CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR
174
174
CMAKE_CXX_COMPILER_ID STREQUAL "Clang" )
@@ -291,7 +291,7 @@ if( VVDEC_USE_THREAD_SANITIZER )
291
291
add_link_options ( "-fsanitize=thread" )
292
292
endif ()
293
293
294
- if ( VVDEC_ENABLE_WARNINGS_AS_WERROR )
294
+ if ( VVDEC_ENABLE_WERROR )
295
295
add_compile_options ( "$<$<OR:$<CXX_COMPILER_ID:GNU>,$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:AppleClang>>:-Werror>" )
296
296
add_compile_options ( "$<$<CXX_COMPILER_ID:MSVC>:/WX>" )
297
297
endif ()
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ CONFIG_OPTIONS += -DVVDEC_ENABLE_LINK_TIME_OPT=OFF
60
60
endif
61
61
62
62
ifneq ($(enable-werror ) ,)
63
- CONFIG_OPTIONS += -DVVDEC_ENABLE_WARNINGS_AS_WERROR =$(enable-werror )
63
+ CONFIG_OPTIONS += -DVVDEC_ENABLE_WERROR =$(enable-werror )
64
64
endif
65
65
66
66
ifneq ($(osx-arch ) ,)
Original file line number Diff line number Diff line change @@ -26,9 +26,6 @@ if( VVDEC_INSTALL_RPATH )
26
26
set_target_properties ( ${EXE_NAME} PROPERTIES INSTALL_RPATH "${VVDEC_INSTALL_RPATH} " )
27
27
endif ()
28
28
29
- target_compile_options ( ${EXE_NAME} PRIVATE $< $< OR:$< CXX_COMPILER_ID:Clang> ,$< CXX_COMPILER_ID:AppleClang> > :-Wall -Werror>
30
- $< $< CXX_COMPILER_ID:GNU> :-Wall -Werror>
31
- $< $< CXX_COMPILER_ID:MSVC> :/W4 /WX /wd4244 /wd4456 > )
32
29
target_link_libraries ( ${EXE_NAME} Threads::Threads vvdec )
33
30
target_include_directories ( ${EXE_NAME} PRIVATE ../../Lib/libmd5 )
34
31
You can’t perform that action at this time.
0 commit comments