From 4be4aed0c9b162a73327f320d3bd0f9ee6b4fe58 Mon Sep 17 00:00:00 2001 From: Prasad Joshi Date: Mon, 22 May 2017 18:43:13 +0530 Subject: [PATCH] Minor fixes to compile APIs Signed-off-by: Prasad Joshi --- tst/CMakeLists.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tst/CMakeLists.txt b/tst/CMakeLists.txt index e0ce264..53a515b 100644 --- a/tst/CMakeLists.txt +++ b/tst/CMakeLists.txt @@ -1,9 +1,12 @@ -find_path(CATCH_INCLUDE_DIR NAMES catch.hpp) +find_path(CATCH_INCLUDE_DIR NAMES catch.hpp PATHS ${CMAKE_SOURCE_DIR}) include_directories(${CATCH_INCLUDE_DIR}) add_executable(etcd_test EtcdTest.cpp EtcdSyncTest.cpp WatcherTest.cpp) set_property(TARGET etcd_test PROPERTY CXX_STANDARD 11) -target_link_libraries(etcd_test etcd-cpp-api) +target_link_libraries(etcd_test + etcd-cpp-api + pthread +) add_test(etcd_test etcd_test)