Skip to content

Commit be2c68a

Browse files
committed
Use the right switch to disable specific warnings as errors
1 parent e57c66a commit be2c68a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ target_include_directories(${LIB_TARGET_NAME}
5656
PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include)
5757

5858
if(NOT MSVC)
59-
target_compile_options(boost_assert INTERFACE -Wno-error-parentheses -Wno-parentheses)
60-
target_compile_options(boost_filesystem PRIVATE -Wno-error-deprecated-declarations -Wno-deprecated-declarations)
61-
target_compile_options(${LIB_TARGET_NAME} PRIVATE -Wall -Werror -Wno-error-maybe-uninitialized)
59+
target_compile_options(boost_assert INTERFACE -Wno-error=parentheses -Wno-parentheses)
60+
target_compile_options(boost_filesystem PRIVATE -Wno-error=deprecated-declarations -Wno-deprecated-declarations)
61+
target_compile_options(${LIB_TARGET_NAME} PRIVATE -Wall -Werror -Wno-error=maybe-uninitialized)
6262
endif()
6363

6464
if (JINJA2CPP_BUILD_TESTS)

0 commit comments

Comments
 (0)