From 01f5601fe5aee395676ecc743c1b8a48b366f404 Mon Sep 17 00:00:00 2001 From: Milan Jaros Date: Mon, 23 Jul 2018 14:20:06 +0200 Subject: Fix build for Intel compiler with C++11. --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index da333286478..4de98860a61 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1615,7 +1615,11 @@ if(WITH_PYTHON) endif() if(WITH_CXX11) - if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MATCHES "Clang") + if( + CMAKE_COMPILER_IS_GNUCC OR + CMAKE_C_COMPILER_ID MATCHES "Clang" OR + CMAKE_C_COMPILER_ID MATCHES "Intel" + ) # TODO(sergey): Do we want c++11 or gnu-c++11 here? set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") elseif(MSVC) -- cgit v1.2.3