From d965fe218daa38ff88aa4c7f3d39a4e83001797d Mon Sep 17 00:00:00 2001 From: Krzysztof Kajrewicz Date: Tue, 9 Apr 2019 15:03:03 +0200 Subject: [PATCH] cmake: require c++11 for cow check C++ version was incorrectly computed by cmake to c++98 which resulted in compilation error on ubuntu 16.04 --- tests/pmemobj_check_cow/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/pmemobj_check_cow/CMakeLists.txt b/tests/pmemobj_check_cow/CMakeLists.txt index d33c069108..65a15893dd 100644 --- a/tests/pmemobj_check_cow/CMakeLists.txt +++ b/tests/pmemobj_check_cow/CMakeLists.txt @@ -1,5 +1,5 @@ # -# Copyright 2018, Intel Corporation +# Copyright 2018-2019, Intel Corporation # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions @@ -32,6 +32,9 @@ cmake_minimum_required(VERSION 3.3) project(pmemobj_check_cow CXX) +set(CXX_STANDARD_REQUIRED ON) +set(CMAKE_CXX_STANDARD 11) + include_directories(${LIBPMEMOBJ_INCLUDE_DIRS}) include_directories(${LIBPMEMOBJ++_INCLUDE_DIRS}) link_directories(${LIBPMEMOBJ_LIBRARY_DIRS})