File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ function(llama_add_compile_flags)
1616 list (APPEND CXX_FLAGS -Wmissing-declarations -Wmissing-noreturn)
1717
1818 # GCC -Wshadow is way too agressive
19- if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" )
19+ if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" )
2020 list (APPEND CXX_FLAGS -Wshadow)
2121 endif ()
2222
Original file line number Diff line number Diff line change @@ -3,4 +3,7 @@ add_executable(${TARGET} run.cpp)
33install (TARGETS ${TARGET} RUNTIME)
44target_link_libraries (${TARGET} PRIVATE common llama ${CMAKE_THREAD_LIBS_INIT} )
55target_compile_features (${TARGET} PRIVATE cxx_std_17)
6- target_compile_options (${TARGET} PRIVATE -Wno-shadow) # TMP
6+
7+ if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" )
8+ target_compile_options (${TARGET} PRIVATE -Wno-shadow) # TMP
9+ endif ()
You can’t perform that action at this time.
0 commit comments