From 24f49ce4614ea65a7fc1195ecdb59e7139100af6 Mon Sep 17 00:00:00 2001 From: jpekkila Date: Thu, 4 Jul 2019 16:01:02 +0300 Subject: [PATCH] Host code now compiled according to the C++11 standard. The device code has used C++11 for a while now and it's good to use a single standard consistently throughout the project. Old Intel compilers (~14.0) do not seem to support C++11 but the code should still compile since the flag is ignored in that case. --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4ffb2b1..bf47f5d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,7 +13,7 @@ #-------------------General---------------------------------------------------# project(ASTAROTH_2.0 CXX) -set (CMAKE_CXX_STANDARD 98) +set (CMAKE_CXX_STANDARD 11) cmake_minimum_required (VERSION 3.5.1) # Need >= 3.8 for first-class CUDA support cmake_policy (SET CMP0023 NEW) @@ -134,8 +134,8 @@ set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG}\ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") set (CXX_FLAGS_WARNING "-Wall -Wextra -Werror -Wdouble-promotion -Wfloat-conversion") elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Intel") - #MV: -Werror-all disabled because produces cryptical messages preventing compilation. - #TODO: Would be good to find an optimal set of warning flags. + #MV: -Werror-all disabled because produces cryptical messages preventing compilation. + #TODO: Would be good to find an optimal set of warning flags. #set (CXX_FLAGS_WARNING "-Wall -Wextra -Werror-all -Wsign-conversion") set (CXX_FLAGS_WARNING "-Wall -Wextra -Wsign-conversion") else()