From: 박종현/동작제어Lab(SR)/Staff Engineer/삼성전자 Date: Fri, 31 Aug 2018 08:35:37 +0000 (+0900) Subject: [CaffeProto] Do NOT generate files at top-level (#1273) X-Git-Tag: nncc_backup~1989 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b825169241bd1d6abbe56eb60286d05dc1cfcd37;p=platform%2Fcore%2Fml%2Fnnfw.git [CaffeProto] Do NOT generate files at top-level (#1273) 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 --- diff --git a/cmake/packages/CaffeProto/CMakeLists.txt b/cmake/packages/CaffeProto/CMakeLists.txt index fff028e..fd5623b 100644 --- a/cmake/packages/CaffeProto/CMakeLists.txt +++ b/cmake/packages/CaffeProto/CMakeLists.txt @@ -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})