Skip to content

Commit 62e58cf

Browse files
romanhabibovLeonidVas
authored andcommitted
build: drop extra options -lssl -lcrypto
These options are superfluous, because these dependencies is already passed to the linker when linking marialdb-connector-c and library dependencies are transitive by default with target_link_libraries(). See: mariadb-connector-c/CMakeLists.txt:272 and https://cmake.org/cmake/help/v3.3/command/target_link_libraries.html#libraries-for-both-a-target-and-its-dependents. Closes #52
1 parent 78108f0 commit 62e58cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mysql/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
add_library(driver SHARED driver.c)
22
add_dependencies(driver mariadbclient)
3-
target_link_libraries(driver mariadbclient -lssl -lcrypto)
3+
target_link_libraries(driver mariadbclient)
44
set_target_properties(driver PROPERTIES PREFIX "" OUTPUT_NAME "driver")
55
install(TARGETS driver LIBRARY DESTINATION ${TARANTOOL_INSTALL_LIBDIR}/mysql)
66
install(FILES init.lua DESTINATION ${TARANTOOL_INSTALL_LUADIR}/mysql)

0 commit comments

Comments
 (0)