Modified compiler flags to make opm-parser unit test compile

This commit is contained in:
Magne Sjaastad 2016-06-14 14:46:30 +02:00
parent ee156794b6
commit e57bbb2402

View File

@ -21,7 +21,7 @@ elseif(MSVC)
endif()
if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
set(CMAKE_CXX_FLAGS "-DCVF_LINUX -pipe -Wextra -Woverloaded-virtual -Wformat -std=gnu++11")
set(CMAKE_CXX_FLAGS "-DCVF_LINUX -pipe -Wextra -Woverloaded-virtual -Wformat -std=c++0x")
set(CMAKE_CXX_FLAGS_DEBUG "-ggdb -g3 -O0 -DDEBUG -D_DEBUG")
set(CMAKE_CXX_FLAGS_RELEASE "-O2 -DNO_DEBUG")
endif()
@ -209,6 +209,7 @@ endif(RESINSIGHT_ERT_EXTERNAL_LIB_ROOT OR RESINSIGHT_ERT_EXTERNAL_INCLUDE_ROOT)
################################################################################
add_subdirectory(ThirdParty/custom-opm-parser)
add_subdirectory(ThirdParty/custom-opm-parser/custom-opm-parser-tests)
################################################################################