Skip to content

Commit 34889bf

Browse files
committed
cmake : cont
ggml-ci
1 parent e159e77 commit 34889bf

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

cmake/common.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

examples/run/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,7 @@ add_executable(${TARGET} run.cpp)
33
install(TARGETS ${TARGET} RUNTIME)
44
target_link_libraries(${TARGET} PRIVATE common llama ${CMAKE_THREAD_LIBS_INIT})
55
target_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()

0 commit comments

Comments
 (0)