mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-21 17:18:00 +02:00
WIP
This commit is contained in:
@ -13,7 +13,9 @@ function(custom_find_zmq)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
# libzmq autotools install: fallback to pkg-config
|
# libzmq autotools install: fallback to pkg-config
|
||||||
if(NOT ZeroMQ_FOUND)
|
if(ZeroMQ_FOUND)
|
||||||
|
message(STATUS "Found libzmq using find_package")
|
||||||
|
else()
|
||||||
message(STATUS "CMake libzmq package not found, trying again with pkg-config (normal install of zeromq)")
|
message(STATUS "CMake libzmq package not found, trying again with pkg-config (normal install of zeromq)")
|
||||||
list (APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR}/cmake/libzmq-pkg-config)
|
list (APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR}/cmake/libzmq-pkg-config)
|
||||||
find_package(ZeroMQ 4 REQUIRED)
|
find_package(ZeroMQ 4 REQUIRED)
|
||||||
@ -30,7 +32,7 @@ function(custom_find_zmq)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
get_target_property(VAR libzmq IMPORTED_LOCATION)
|
get_target_property(VAR libzmq IMPORTED_LOCATION)
|
||||||
message(STATUS "Using zmqlib: ${VAR}")
|
message(STATUS "Using libzmq: ${VAR}")
|
||||||
|
|
||||||
|
|
||||||
endfunction()
|
endfunction()
|
Reference in New Issue
Block a user