From 6c5c93c1d6901dee392a809cea3b1eb3efa23f2f Mon Sep 17 00:00:00 2001 From: Michael Vrable Date: Tue, 16 Feb 2010 15:29:08 -0800 Subject: [PATCH] More CMake tweaking. --- kvstore/CMakeLists.txt | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/kvstore/CMakeLists.txt b/kvstore/CMakeLists.txt index dc8b9cd..20e5d75 100644 --- a/kvstore/CMakeLists.txt +++ b/kvstore/CMakeLists.txt @@ -1,10 +1,3 @@ -add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/kvstore.pb.cc - ${CMAKE_CURRENT_BINARY_DIR}/kvstore.pb.h - COMMAND protoc --cpp_out=${CMAKE_CURRENT_BINARY_DIR} - --proto_path=${CMAKE_CURRENT_SOURCE_DIR} - ${CMAKE_CURRENT_SOURCE_DIR}/kvstore.proto - DEPENDS kvstore.proto) - include_directories(${CMAKE_CURRENT_BINARY_DIR}) add_library(protobufrpc protobufrpc.cc socket_pool.cc workqueue.cc) @@ -24,3 +17,11 @@ target_link_libraries(kvstore kvservice boost_thread-mt boost_regex-mt boost_system-mt boost_program_options-mt db protobuf protobufrpc pthread) + +add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/kvstore.pb.cc + ${CMAKE_CURRENT_BINARY_DIR}/kvstore.pb.h + COMMAND protoc --cpp_out=${CMAKE_CURRENT_BINARY_DIR} + --proto_path=${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_SOURCE_DIR}/kvstore.proto + DEPENDS kvstore.proto) + -- 2.20.1