mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Janitor: Silence deprecation warnings for Qwt and nightcharts
This commit is contained in:
parent
20ec6e20f2
commit
b98bd579d7
@ -440,6 +440,8 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
||||
target_compile_options(qwt PRIVATE -Wno-deprecated-copy)
|
||||
elseif(MSVC)
|
||||
target_compile_options(qwt PRIVATE /wd4996 /wd4005)
|
||||
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
||||
target_compile_options(qwt PRIVATE -Wno-deprecated)
|
||||
endif()
|
||||
|
||||
if(RESINSIGHT_ENABLE_UNITY_BUILD)
|
||||
@ -460,6 +462,8 @@ list(APPEND THIRD_PARTY_LIBRARIES qwt)
|
||||
add_subdirectory(ThirdParty/nightcharts)
|
||||
if(MSVC)
|
||||
target_compile_options(nightcharts PRIVATE /wd4996)
|
||||
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
||||
target_compile_options(nightcharts PRIVATE -Wno-deprecated)
|
||||
endif()
|
||||
|
||||
list(APPEND THIRD_PARTY_LIBRARIES nightcharts)
|
||||
|
Loading…
Reference in New Issue
Block a user