Skip to content

Commit 5fee676

Browse files
committed
fix cmake
1 parent 3b31efe commit 5fee676

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

example/CMakeLists.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,14 @@ ExternalProject_Add(tikv
99
SOURCE_DIR ${CMAKE_SOURCE_DIR}/../
1010
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${EXTERNAL_INSTALL_LOCATION}
1111
)
12+
1213
include_directories(${EXTERNAL_INSTALL_LOCATION}/include)
1314
link_directories(${EXTERNAL_INSTALL_LOCATION}/lib)
1415

15-
1616
add_executable(raw raw.cpp)
17-
target_link_libraries(raw tikvcpp tikvrust pthread dl ssl crypto)
1817
add_executable(txn txn.cpp)
18+
19+
add_dependencies(raw tikv)
20+
add_dependencies(txn tikv)
21+
target_link_libraries(raw tikvcpp tikvrust pthread dl ssl crypto)
1922
target_link_libraries(txn tikvcpp tikvrust pthread dl ssl crypto)

0 commit comments

Comments
 (0)