Skip to content

Commit

Permalink
Disable Boost autolinking on Windows
Browse files Browse the repository at this point in the history
Using the autolink feature seems to lead to linker errors for the Boost
date_time library with older versions of Boost and/or older versions of
Visual Studio.
  • Loading branch information
Krzmbrzl committed May 20, 2024
1 parent 94afcb3 commit 1ed5993
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,14 @@ endif()

soci_public_dependency(
NAME Boost
DEP_TARGETS Boost::boost Boost::date_time
DEP_TARGETS Boost::boost Boost::date_time Boost::disable_autolinking
COMPONENTS date_time
MACRO_NAMES SOCI_HAVE_BOOST SOCI_HAVE_BOOST_DATE_TIME
TARGET SOCI::Core
)
soci_public_dependency(
NAME Boost
DEP_TARGETS Boost::boost
DEP_TARGETS Boost::boost Boost::disable_autolinking
MACRO_NAMES SOCI_HAVE_BOOST
TARGET SOCI::Core
)
Expand Down

0 comments on commit 1ed5993

Please sign in to comment.