Skip to content

Commit 0611212

Browse files
committed
unfiy -Werror CMake & Makefile parameter between VVenC & VVdeC
1 parent 4d7e388 commit 0611212

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ set( VVDEC_ENABLE_BUILD_TYPE_POSTFIX OFF CACHE BOOL "Enable or disable
168168

169169
set( VVDEC_ENABLE_LINK_TIME_OPT ON CACHE BOOL "Enable link time optimization for release and profile builds" )
170170

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)" )
172172

173173
if( CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR
174174
CMAKE_CXX_COMPILER_ID STREQUAL "Clang" )
@@ -291,7 +291,7 @@ if( VVDEC_USE_THREAD_SANITIZER )
291291
add_link_options( "-fsanitize=thread" )
292292
endif()
293293

294-
if( VVDEC_ENABLE_WARNINGS_AS_WERROR )
294+
if( VVDEC_ENABLE_WERROR )
295295
add_compile_options( "$<$<OR:$<CXX_COMPILER_ID:GNU>,$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:AppleClang>>:-Werror>" )
296296
add_compile_options( "$<$<CXX_COMPILER_ID:MSVC>:/WX>" )
297297
endif()

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ CONFIG_OPTIONS += -DVVDEC_ENABLE_LINK_TIME_OPT=OFF
6060
endif
6161

6262
ifneq ($(enable-werror),)
63-
CONFIG_OPTIONS += -DVVDEC_ENABLE_WARNINGS_AS_WERROR=$(enable-werror)
63+
CONFIG_OPTIONS += -DVVDEC_ENABLE_WERROR=$(enable-werror)
6464
endif
6565

6666
ifneq ($(osx-arch),)

source/App/vvdecapp/CMakeLists.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@ if( VVDEC_INSTALL_RPATH )
2626
set_target_properties( ${EXE_NAME} PROPERTIES INSTALL_RPATH "${VVDEC_INSTALL_RPATH}" )
2727
endif()
2828

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 >)
3229
target_link_libraries( ${EXE_NAME} Threads::Threads vvdec )
3330
target_include_directories( ${EXE_NAME} PRIVATE ../../Lib/libmd5 )
3431

0 commit comments

Comments
 (0)