@@ -321,13 +321,11 @@ endif()
321321include (AddThreadsIfNeeded)
322322add_threads_if_needed()
323323
324- add_library (sanitizing_interface INTERFACE )
325- target_link_libraries (core_base_interface INTERFACE sanitizing_interface)
326324if (SANITIZERS)
327325 # First check if the compiler accepts flags. If an incompatible pair like
328326 # -fsanitize=address,thread is used here, this check will fail. This will also
329327 # fail if a bad argument is passed, e.g. -fsanitize=undfeined
330- try_append_cxx_flags("-fsanitize=${SANITIZERS} " TARGET sanitizing_interface
328+ try_append_cxx_flags("-fsanitize=${SANITIZERS} " TARGET core_base_interface
331329 RESULT_VAR cxx_supports_sanitizers
332330 SKIP_LINK
333331 )
@@ -354,7 +352,7 @@ if(SANITIZERS)
354352 message (FATAL_ERROR "Linker did not accept requested flags, you are missing required libraries." )
355353 endif ()
356354endif ()
357- target_link_options (sanitizing_interface INTERFACE ${SANITIZER_LDFLAGS} )
355+ target_link_options (core_base_interface INTERFACE ${SANITIZER_LDFLAGS} )
358356
359357include (AddBoostIfNeeded)
360358add_boost_if_needed()
@@ -497,7 +495,7 @@ try_append_cxx_flags("-fstack-reuse=none" TARGET core_base_interface)
497495
498496if (ENABLE_HARDENING)
499497 add_library (hardening_interface INTERFACE )
500- target_link_libraries (core_base_interface INTERFACE hardening_interface)
498+ target_link_libraries (core_interface INTERFACE hardening_interface)
501499 if (MSVC )
502500 try_append_linker_flag("/DYNAMICBASE" TARGET hardening_interface)
503501 try_append_linker_flag("/HIGHENTROPYVA" TARGET hardening_interface)
0 commit comments