mirror of
https://github.com/allankoechke/soci.git
synced 2026-11-30 10:58:24 +00:00
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:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user