-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resolve obvious build problems #22
Comments
Fix no.2 ammended, because tarantool-c is popular, and might be installed from other sources, allow the CMake to use locally installed library, instead of force using the git-submodule Currently submodule links to tarantool/tarantool-c@653d673 which is diff --git a/CMakeLists.txt b/CMakeLists.txt
index be1ff02..0b23187 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -21,7 +21,11 @@ set(TARANTOOL_C_EMBEDDED ON)
add_subdirectory(lib/libslave)
add_subdirectory(lib/yaml-cpp)
-add_subdirectory(lib/tarantool-c)
+
+find_library(TNT_LIB tarantool.so.2.0)
+if(NOT TNT_LIB)
+ add_subdirectory(lib/tarantool-c)
+endif()
include_directories(
BEFORE SYSTEM
@@ -40,7 +44,7 @@ find_library(LPTHREAD pthread)
add_executable(rp ${REPLICATOR_SRC})
set_target_properties(rp PROPERTIES COMPILE_FLAGS "-std=c++11" LINK_FLAGS "-Wl,-s -Wl,--gc-sections" OUTPUT_NAME replicatord)
-target_link_libraries(rp rt dl tnt slave_a yaml-cpp ${LPTHREAD})
+target_link_libraries(rp rt dl tarantool slave_a yaml-cpp ${LPTHREAD})
install(TARGETS rp RUNTIME DESTINATION sbin)
install(FILES replicatord.yml DESTINATION etc) |
Please feel free to send us a pull request. |
Still waits for libslave to merge the vector PR, after that this repository must update the submodule reference |
See also #31. |
Fix no.1
Fixes build issue like this:
Fix no.2
Fixes build issue like this:
Fix no.3 is PR in libslave
tarantool/libslave#12
The text was updated successfully, but these errors were encountered: