mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Hide deprecation warning starting from MSVC 17.8
This commit is contained in:
parent
f092f18614
commit
98ce0dc226
@ -110,6 +110,11 @@ if(MSVC)
|
||||
set(BUILD_FLAGS_FOR_MSVC "${BUILD_FLAGS_FOR_MSVC} /wd4505")
|
||||
endif()
|
||||
|
||||
if(CMAKE_CXX_COMPILER_VERSION GREATER_EQUAL 19.38)
|
||||
# https://github.com/OPM/ResInsight/issues/10844
|
||||
set(BUILD_FLAGS_FOR_MSVC "${BUILD_FLAGS_FOR_MSVC} /wd4996")
|
||||
endif()
|
||||
|
||||
set_target_properties(
|
||||
${PROJECT_NAME} PROPERTIES COMPILE_FLAGS ${BUILD_FLAGS_FOR_MSVC}
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user