允许手动指定protobuf库文件路径
This commit is contained in:
@@ -34,4 +34,9 @@ else ()
|
|||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
target_include_directories(Transmission PUBLIC ${CMAKE_CURRENT_BINARY_DIR})
|
target_include_directories(Transmission PUBLIC ${CMAKE_CURRENT_BINARY_DIR})
|
||||||
target_link_libraries(Transmission protobuf proto lzma)
|
if(NOT DEFINED PROTOBUF_LIB_PATH)
|
||||||
|
set(PROTOBUF_LIB_PATH "protobuf")
|
||||||
|
else ()
|
||||||
|
message("手动指定protobuf库为${PROTOBUF_LIB_PATH}")
|
||||||
|
endif ()
|
||||||
|
target_link_libraries(Transmission ${PROTOBUF_LIB_PATH} proto lzma)
|
||||||
Reference in New Issue
Block a user