From 4979aaee8a32d4ab25bdc156836be48c9b6c1a79 Mon Sep 17 00:00:00 2001 From: MiguelBarro <45819833+MiguelBarro@users.noreply.github.com> Date: Thu, 30 Jun 2022 20:18:19 +0200 Subject: [PATCH] fix c++11 support for fast discovery server tool (#2798) Signed-off-by: Miguel Barro --- tools/fds/CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/fds/CMakeLists.txt b/tools/fds/CMakeLists.txt index c3cae145eb9..899fe6935b0 100644 --- a/tools/fds/CMakeLists.txt +++ b/tools/fds/CMakeLists.txt @@ -26,8 +26,7 @@ endif() # Check C++11 include(CheckCXXCompilerFlag) -if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_CLANG OR - CMAKE_CXX_COMPILER_ID MATCHES "Clang") +if(CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang") check_cxx_compiler_flag(-std=c++11 SUPPORTS_CXX11) if(NOT SUPPORTS_CXX11) message(FATAL_ERROR "Compiler doesn't support C++11")