Restore using soci_compiler_interface in soci_core with MSVC

This was accidentally broken by 0558c146 (Don't bother checking for
Threads when using MSVC, 2025-06-07), move this part of
target_link_libraries() outside the "NOT MSVC" check added there.
This commit is contained in:
Vadim Zeitlin
2025-06-08 02:14:12 +02:00
parent 93c5dc5717
commit d1fede569a

View File

@@ -154,12 +154,15 @@ if (WITH_BOOST)
endif()
endif()
target_link_libraries(soci_core
PUBLIC
$<BUILD_INTERFACE:soci_compiler_interface>
)
if (NOT MSVC)
find_package(Threads REQUIRED)
target_link_libraries(soci_core
PUBLIC
$<BUILD_INTERFACE:soci_compiler_interface>
PRIVATE
Threads::Threads
${CMAKE_DL_LIBS}