Skip to content

Commit 983c80a

Browse files
authored
interface test
1 parent 2164559 commit 983c80a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

vendor/cpp-httplib/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,12 @@ if(LLAMA_BUILD_BORINGSSL AND LLAMA_FATAL_WARNINGS)
157157
set_target_properties(fipsmodule PROPERTIES COMPILE_OPTIONS "${target_options}")
158158
else()
159159
get_target_property(target_options fipsmodule COMPILE_OPTIONS)
160-
string(REPLACE "-Werror;" "" target_options "${target_options}")
160+
get_target_property(interface_options fipsmodule INTERFACE_COMPILE_OPTIONS)
161+
list(REMOVE_ITEM target_options $<$<COMPILE_LANGUAGE:C,CXX>:-Werror>)
161162
message(STATUS "Target options: ${target_options}")
163+
message(STATUS "Interface options: ${interface_options}")
162164
set_target_properties(fipsmodule PROPERTIES COMPILE_OPTIONS "${target_options}")
165+
set_target_properties(fipsmodule PROPERTIES INTERFACE_COMPILE_OPTIONS "${target_options}")
163166
endif()
164167
endif()
165168

0 commit comments

Comments
 (0)