From f4915a5b04eb08ffe445c41dad2472e44ec467c3 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Sun, 29 Aug 2021 12:42:59 +0200 Subject: [PATCH] Add concepts for GNU --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5cd2b59..7810c5a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,6 +9,10 @@ set(STATICC TRUE) include(CMakeLists.txt.in) include_pkmnlib() +if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU") + add_compile_options(-fconcepts) +endif () + file(GLOB_RECURSE SRC_FILES src/*.cpp src/*.hpp) add_executable(PokemonScriptTester ${SRC_FILES}) target_precompile_headers(PokemonScriptTester PUBLIC src/Precompiled.hxx)