fix: use current binary directory mariadb shared object and dont override env variable (#1669)

* mac stuff

grab correct mariadb file and dont override env variable

fix for unix

Update CMakeLists.txt

unix only

* get that dylib
This commit is contained in:
David Markowitz
2024-12-07 22:36:49 -08:00
committed by GitHub
parent 4a1c289fb1
commit 8b56b0b7ba
7 changed files with 17 additions and 28 deletions

View File

@@ -4,15 +4,6 @@ enable_testing()
find_package(GoogleTest REQUIRED)
include(GoogleTest)
if(APPLE)
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH True)
set(CMAKE_BUILD_WITH_INSTALL_RPATH True)
set(CMAKE_INSTALL_RPATH "@executable_path")
endif()
add_custom_target(conncpp_tests
${CMAKE_COMMAND} -E copy $<TARGET_FILE:MariaDB::ConnCpp> ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
# Add the subdirectories
add_subdirectory(dCommonTests)
add_subdirectory(dGameTests)