mirror of
https://github.com/allankoechke/soci.git
synced 2026-11-30 10:58:24 +00:00
Properly propagate Threads dependency
This commit is contained in:
@@ -160,21 +160,20 @@ if (WITH_BOOST)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
target_link_libraries(soci_core
|
||||
PRIVATE
|
||||
$<BUILD_INTERFACE:soci_compiler_interface>
|
||||
)
|
||||
|
||||
if (NOT MSVC)
|
||||
find_package(Threads REQUIRED)
|
||||
|
||||
target_link_libraries(soci_core
|
||||
PRIVATE
|
||||
Threads::Threads
|
||||
${CMAKE_DL_LIBS}
|
||||
soci_private_dependency(
|
||||
NAME Threads
|
||||
DEP_TARGETS Threads::Threads
|
||||
TARGET SOCI::Core
|
||||
)
|
||||
endif()
|
||||
|
||||
target_link_libraries(soci_core
|
||||
PRIVATE
|
||||
${CMAKE_DL_LIBS}
|
||||
$<BUILD_INTERFACE:soci_compiler_interface>
|
||||
)
|
||||
|
||||
target_compile_definitions(soci_core
|
||||
PRIVATE
|
||||
SOCI_LIB_PREFIX="${CMAKE_SHARED_LIBRARY_PREFIX}${SOCI_NAME_PREFIX}soci_"
|
||||
|
||||
Reference in New Issue
Block a user