From dd2ff236217cb02275cbfa66f50c265a578d1f1e Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 3 Aug 2020 11:03:30 -0400 Subject: CMakeLists: Resolve #4478 This switch is enabled by default in all recent versions of GCC and Clang. --- src/CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/CMakeLists.txt') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 54dca3302..71efbb40d 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -60,9 +60,14 @@ else() -Wmissing-declarations -Wno-attributes -Wno-unused-parameter - -fconcepts ) + # TODO: Remove when we update to a GCC compiler that enables this + # by default (i.e. GCC 10 or newer). + if (CMAKE_CXX_COMPILER_ID STREQUAL GNU) + add_compile_options(-fconcepts) + endif() + if (ARCHITECTURE_x86_64) add_compile_options("-mcx16") endif() -- cgit v1.2.3