fix: macos?

This commit is contained in:
Xiphoseer 2024-01-05 22:54:07 +01:00
parent a52cfb5b0b
commit decce5b4c5
2 changed files with 4 additions and 2 deletions

View File

@ -142,8 +142,7 @@ if(WIN32)
IMPORTED_IMPLIB "${MARIADB_IMPLIB_LOCATION}")
elseif(APPLE)
set_target_properties(MariaDB::ConnCpp PROPERTIES
MACOSX_RPATH TRUE
INSTALL_NAME_DIR "@rpath")
IMPORTED_SONAME "libmariadbcpp")
endif()
# Add directories to include lists

View File

@ -29,6 +29,9 @@ add_custom_command(TARGET dCommonTests POST_BUILD
add_custom_command(TARGET dCommonTests POST_BUILD
COMMAND ls
WORKING_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
add_custom_command(TARGET dCommonTests POST_BUILD
COMMAND otool ARGS -D libmariadbcpp.dylib
WORKING_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
endif()
# Link needed libraries