mirror of
https://github.com/boostorg/mysql.git
synced 2026-02-14 12:52:17 +00:00
Trying to solve link errors in Appveyor
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user