File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ()
164167endif ()
165168
You can’t perform that action at this time.
0 commit comments