From 939fee3f5011004d53e358999257434676dcf51b Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Fri, 14 Aug 2020 14:26:40 +0200 Subject: [PATCH] Add -fconcepts for GCC. Signed-off-by: Deukhoofd --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index e70db46..0b56d0c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,6 +11,10 @@ option(SHARED "Whether we should build a shared library, instead of a static one option(TESTS "Whether the test executable should be build as well." OFF) option(STATICC "Whether gcc and stdc++ should be linked statically to the library." OFF) +if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU") + add_compile_options(-fconcepts) +endif () + include(CmakeConanSetup.cmake) SetupConan()