Skip to content

Commit bd3f7fa

Browse files
authored
try string replace
1 parent a9fe542 commit bd3f7fa

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

vendor/cpp-httplib/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,11 @@ if((LLAMA_BUILD_BORINGSSL OR LLAMA_BUILD_LIBRESSL) AND LLAMA_FATAL_WARNINGS)
153153
if (MSVC)
154154
get_target_property(target_options crypto COMPILE_OPTIONS)
155155
list(REMOVE_ITEM target_options "/WX")
156+
message(STATUS "Target options: ${target_options}")
156157
set_target_properties(crypto PROPERTIES COMPILE_OPTIONS "${target_options}")
157158
else()
158159
get_target_property(target_options crypto COMPILE_OPTIONS)
159-
list(REMOVE_ITEM target_options "-Werror")
160+
string(REPLACE "-Werror;" "" target_options "${target_options}")
160161
message(STATUS "Target options: ${target_options}")
161162
set_target_properties(crypto PROPERTIES COMPILE_OPTIONS "${target_options}")
162163
endif()

0 commit comments

Comments
 (0)