System : Hide warnings from boost and NRLib

This commit is contained in:
Magne Sjaastad 2017-08-18 10:01:40 +02:00
parent afaf6e0d87
commit f7a333092d
2 changed files with 7 additions and 0 deletions

View File

@ -26,5 +26,9 @@ add_library( ${PROJECT_NAME}
${NRLIB_WELL_SRC}
)
if (MSVC)
set_target_properties(${PROJECT_NAME} PROPERTIES COMPILE_FLAGS "/wd4996")
endif()
add_subdirectory(well_UnitTests)

View File

@ -33,3 +33,6 @@ add_library( ${PROJECT_NAME}
libs/system/src/error_code.cpp
)
if (MSVC)
set_target_properties(${PROJECT_NAME} PROPERTIES COMPILE_FLAGS "/wd4244")
endif()