only find cpprestsdk when not set BUILD_ETCD_CORE_ONLY
This commit is contained in:
parent
27d96a2947
commit
59c22311f3
|
|
@ -15,9 +15,11 @@ if(NOT gRPC_FOUND)
|
||||||
find_dependency(GRPC)
|
find_dependency(GRPC)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
find_package(cpprestsdk QUIET)
|
if (NOT @BUILD_ETCD_CORE_ONLY@)
|
||||||
if(cpprestsdk_FOUND)
|
find_dependency(cpprestsdk)
|
||||||
|
if(cpprestsdk_FOUND)
|
||||||
set(CPPREST_LIB cpprestsdk::cpprest)
|
set(CPPREST_LIB cpprestsdk::cpprest)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(ETCD_CPP_HOME "${CMAKE_CURRENT_LIST_DIR}/../../..")
|
set(ETCD_CPP_HOME "${CMAKE_CURRENT_LIST_DIR}/../../..")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue