Skip to content

Commit dac7404

Browse files
committed
-fconcepts is not recognized by Apple Clang
1 parent 2449c51 commit dac7404

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,13 @@ else()
7676
-Wshadow -Wstrict-aliasing -Wstrict-aliasing=3 -Wuninitialized
7777
-Wunused-const-variable=2 -Wwrite-strings -Wlogical-op
7878
-Wno-missing-include-dirs -Wno-undef
79-
-fconcepts
8079
)
8180
target_link_options(cpputils PRIVATE -fuse-ld=gold)
8281

82+
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
83+
target_compile_options(-fconcepts)
84+
endif()
85+
8386
# Add defines based on configuration
8487
target_compile_definitions(cpputils PRIVATE
8588
"$<$<CONFIG:Release>:NDEBUG=1>"

0 commit comments

Comments
 (0)