From 85a7573b82fb4ec4c9438fd9a044cc11d21a4338 Mon Sep 17 00:00:00 2001 From: "Korn, Uwe" Date: Mon, 18 Sep 2017 09:57:08 +0200 Subject: [PATCH] DRILL-5799: native-client: Support alternative build directories --- contrib/native/client/src/protobuf/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/native/client/src/protobuf/CMakeLists.txt b/contrib/native/client/src/protobuf/CMakeLists.txt index edae72f09b3..95001c595e2 100644 --- a/contrib/native/client/src/protobuf/CMakeLists.txt +++ b/contrib/native/client/src/protobuf/CMakeLists.txt @@ -82,9 +82,9 @@ set(ProtoIncludesDir ${PROTO_INC_DIR} PARENT_SCOPE) #Preprocess to fix protobuf .proto definitions SET (SRCDIR ${PROJECT_SOURCE_DIR}/../../../protocol/src/main/protobuf ) -SET (TARGDIR ${PROJECT_SOURCE_DIR}/build/protobuf) +SET (TARGDIR ${CMAKE_BINARY_DIR}/protobuf) SET (FNAME Types.proto) -SET (CPPSRCDIR ${PROJECT_SOURCE_DIR}/build/src/protobuf) +SET (CPPSRCDIR ${CMAKE_BINARY_DIR}/src/protobuf) SET (CPPDESTDIR ${PROJECT_SOURCE_DIR}/src/protobuf) SET (CPPINCDIR ${PROJECT_SOURCE_DIR}/src/include/drill/protobuf)