From a3daff344a71cba715c67ea2bb8a3e6cc035d16f Mon Sep 17 00:00:00 2001 From: ruben Date: Thu, 2 Apr 2020 19:24:38 +0100 Subject: [PATCH] Trying to solve link errors in Appveyor --- CMakeLists.txt | 1 + examples/CMakeLists.txt | 3 +-- test/CMakeLists.txt | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b268b9fa..f8246591 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -14,6 +14,7 @@ endif() function(_mysql_set_target_warnings TARGET_NAME) if(MSVC) target_compile_definitions(${TARGET_NAME} PRIVATE _CRT_SECURE_NO_WARNINGS) + target_link_directories(${TARGET_NAME} PRIVATE "C:\Libraries\boost_1_71_0\lib64-msvc-14.2") else() target_compile_options(${TARGET_NAME} PRIVATE -Wall -Wextra -pedantic -Werror) endif() diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 4dc31bf2..3353e973 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -1,5 +1,5 @@ -find_package(Boost REQUIRED COMPONENTS coroutine date_time) +find_package(Boost REQUIRED COMPONENTS coroutine) function (_mysql_add_example EXECUTABLE_NAME CPPFILE) add_executable( @@ -11,7 +11,6 @@ function (_mysql_add_example EXECUTABLE_NAME CPPFILE) PRIVATE mysql_asio Boost::coroutine - Boost::date_time ) _mysql_set_target_warnings(${EXECUTABLE_NAME}) endfunction() diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 324cb44f..e7a5bc23 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -58,7 +58,7 @@ add_test( ) # Integration testing -find_package(Boost REQUIRED COMPONENTS coroutine date_time) +find_package(Boost REQUIRED COMPONENTS coroutine) add_executable( mysql_integrationtests @@ -81,7 +81,6 @@ target_link_libraries( gmock mysql_asio Boost::coroutine - Boost::date_time ) target_include_directories( mysql_integrationtests