mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Cmake build: Use the same warning flags at in automake
This commit is contained in:
parent
eaf9460909
commit
4c58315d4b
@ -706,7 +706,7 @@ else()
|
|||||||
# The following setting with LYX_GCC11_MODE is needed because cmake does not honor
|
# The following setting with LYX_GCC11_MODE is needed because cmake does not honor
|
||||||
# CMAKE_CXX_STANDARD while performing tests like
|
# CMAKE_CXX_STANDARD while performing tests like
|
||||||
# check_cxx_source_compiles("..." HAVE_DEF_MAKE_UNIQUE)
|
# check_cxx_source_compiles("..." HAVE_DEF_MAKE_UNIQUE)
|
||||||
set(LYX_CXX_FLAGS "-Wall -Wunused-parameter ${LYX_GCC11_MODE}${LYX_CXX_FLAGS}")
|
set(LYX_CXX_FLAGS "-Wall -Wextra -Wno-deprecated-copy ${LYX_GCC11_MODE}${LYX_CXX_FLAGS}")
|
||||||
if(LYX_STDLIB_DEBUG)
|
if(LYX_STDLIB_DEBUG)
|
||||||
set(LYX_CXX_FLAGS "${LYX_CXX_FLAGS} -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC")
|
set(LYX_CXX_FLAGS "${LYX_CXX_FLAGS} -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC")
|
||||||
else()
|
else()
|
||||||
|
Loading…
Reference in New Issue
Block a user