From e57bbb2402dd9304c8a1eb5fb0b11c958aa19929 Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Tue, 14 Jun 2016 14:46:30 +0200 Subject: [PATCH] Modified compiler flags to make opm-parser unit test compile --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index fa7e23669d..43d4bc0cca 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) ################################################################################