[CaffeProto] Do NOT generate files at top-level (#1273)
author박종현/동작제어Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Fri, 31 Aug 2018 08:35:37 +0000 (17:35 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Fri, 31 Aug 2018 08:35:37 +0000 (17:35 +0900)
CaffeProto package currently places generated protobuf files into the
top-level binary directory.

With this commit, generated protobufe files are inside a directory
dedicated to caffeproto target (external/caffeproto).

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
cmake/packages/CaffeProto/CMakeLists.txt

index fff028e..fd5623b 100644 (file)
@@ -1,4 +1,4 @@
-Protobuf_Generate(CAFFE_PROTO "${CMAKE_BINARY_DIR}/generated/caffe" "${CaffeSource_DIR}/src" "caffe/proto/caffe.proto")
+Protobuf_Generate(CAFFE_PROTO "${CMAKE_CURRENT_BINARY_DIR}/generated/caffe" "${CaffeSource_DIR}/src" "caffe/proto/caffe.proto")
 
 add_library(caffeproto SHARED ${CAFFE_PROTO_SOURCES})
 target_include_directories(caffeproto PUBLIC ${CAFFE_PROTO_INCLUDE_DIRS})