mirror of
https://github.com/zeromq/cppzmq.git
synced 2025-05-31 08:09:05 +02:00
Wrap find_package
This commit is contained in:
parent
5999e5adc7
commit
8d731ea900
@ -6,6 +6,7 @@ include (DetectCPPZMQVersion)
|
|||||||
|
|
||||||
project(cppzmq VERSION ${DETECTED_CPPZMQ_VERSION})
|
project(cppzmq VERSION ${DETECTED_CPPZMQ_VERSION})
|
||||||
|
|
||||||
|
if (NOT TARGET libzmq)
|
||||||
find_package(ZeroMQ QUIET)
|
find_package(ZeroMQ QUIET)
|
||||||
|
|
||||||
# libzmq autotools install: fallback to pkg-config
|
# libzmq autotools install: fallback to pkg-config
|
||||||
@ -23,6 +24,7 @@ endif()
|
|||||||
if (ZeroMQ_FOUND AND (NOT TARGET libzmq OR NOT TARGET libzmq-static))
|
if (ZeroMQ_FOUND AND (NOT TARGET libzmq OR NOT TARGET libzmq-static))
|
||||||
message(FATAL_ERROR "ZeroMQ version not supported!")
|
message(FATAL_ERROR "ZeroMQ version not supported!")
|
||||||
endif()
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
if (EXISTS "${CMAKE_SOURCE_DIR}/.git")
|
if (EXISTS "${CMAKE_SOURCE_DIR}/.git")
|
||||||
OPTION (ENABLE_DRAFTS "Build and install draft classes and methods" ON)
|
OPTION (ENABLE_DRAFTS "Build and install draft classes and methods" ON)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user