Skip to content

Commit

Permalink
cmake : set Protobuf_LIB_DIR and Protobuf_LIBRARY (#345)
Browse files Browse the repository at this point in the history
  • Loading branch information
holmes1412 authored Oct 17, 2023
1 parent 02bd294 commit 282c74b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ if (WIN32)
else ()
set(STATIC_LIB_NAME ${PROJECT_NAME}-static)
set(SHARED_LIB_NAME ${PROJECT_NAME}-shared)
get_filename_component(Protobuf_LIB_DIR ${Protobuf_LIBRARY} DIRECTORY)
link_directories(${OPENSSL_LINK_DIR} ${WORKFLOW_LIB_DIR} ${Protobuf_LIB_DIR})

add_library(
Expand Down Expand Up @@ -147,7 +148,7 @@ else ()
OpenSSL::SSL
OpenSSL::Crypto
pthread
protobuf
${Protobuf_LIBRARY}
workflow
z ${SNAPPY_LIB} ${LZ4_LIB})
else ()
Expand Down

0 comments on commit 282c74b

Please sign in to comment.