mirror of
https://github.com/OPM/ResInsight.git
synced 2024-12-28 09:51:44 -06:00
VS2017 : Hide warnings from gtest
This commit is contained in:
parent
bbebbf108f
commit
27bbaff56b
@ -2,6 +2,11 @@ cmake_minimum_required (VERSION 2.8)
|
||||
|
||||
project ( well_UnitTests )
|
||||
|
||||
if (MSVC AND (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 19.11))
|
||||
# VS 2017 : Disable warnings from from gtest code, using deprecated code related to TR1
|
||||
add_definitions(-D_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING)
|
||||
message("Add flag to disable warings from gtest - _SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING")
|
||||
endif()
|
||||
|
||||
include_directories (
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../..
|
||||
|
Loading…
Reference in New Issue
Block a user