File tree 2 files changed +7
-7
lines changed
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ function(caffe_generate_export_configs)
33
33
configure_file ("cmake/Templates/CaffeConfig.cmake.in" "${PROJECT_BINARY_DIR} /CaffeConfig.cmake" @ONLY)
34
34
35
35
# Add targets to the build-tree export set
36
- export (TARGETS caffe proto FILE "${PROJECT_BINARY_DIR} /CaffeTargets.cmake" )
36
+ export (TARGETS caffe caffeproto FILE "${PROJECT_BINARY_DIR} /CaffeTargets.cmake" )
37
37
export (PACKAGE Caffe)
38
38
39
39
# ---[ Configure install-tree CaffeConfig.cmake file ]---
Original file line number Diff line number Diff line change @@ -3,12 +3,12 @@ file(GLOB proto_files proto/*.proto)
3
3
caffe_protobuf_generate_cpp_py(${proto_gen_folder} proto_srcs proto_hdrs proto_python ${proto_files} )
4
4
5
5
# include python files either to force generation
6
- add_library (proto STATIC ${proto_hdrs} ${proto_srcs} ${proto_python} )
7
- caffe_default_properties(proto )
8
- target_link_libraries (proto PUBLIC ${PROTOBUF_LIBRARIES} )
9
- target_include_directories (proto PUBLIC ${PROTOBUF_INCLUDE_DIR} )
6
+ add_library (caffeproto STATIC ${proto_hdrs} ${proto_srcs} ${proto_python} )
7
+ caffe_default_properties(caffeproto )
8
+ target_link_libraries (caffeproto PUBLIC ${PROTOBUF_LIBRARIES} )
9
+ target_include_directories (caffeproto PUBLIC ${PROTOBUF_INCLUDE_DIR} )
10
10
11
- list (INSERT Caffe_LINKER_LIBS 0 PUBLIC proto ) # note, crucial to prepend!
11
+ list (INSERT Caffe_LINKER_LIBS 0 PUBLIC caffeproto ) # note, crucial to prepend!
12
12
13
13
# --[ Caffe library
14
14
@@ -42,7 +42,7 @@ set_target_properties(caffe PROPERTIES
42
42
# ---[ Install
43
43
install (DIRECTORY ${Caffe_INCLUDE_DIR} /caffe DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} )
44
44
install (FILES ${proto_hdrs} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} /caffe/proto)
45
- install (TARGETS caffe proto EXPORT CaffeTargets DESTINATION ${CMAKE_INSTALL_LIBDIR} )
45
+ install (TARGETS caffe caffeproto EXPORT CaffeTargets DESTINATION ${CMAKE_INSTALL_LIBDIR} )
46
46
47
47
file (WRITE ${PROJECT_BINARY_DIR} /__init__.py)
48
48
list (APPEND proto_python ${PROJECT_BINARY_DIR} /__init__.py)
You can’t perform that action at this time.
0 commit comments