Updated macros.cmake with different string matching parameters on searched libraries.
This commit is contained in:
10
macros.cmake
10
macros.cmake
@ -189,9 +189,10 @@ macro(check_dirs)
|
|||||||
|
|
||||||
if(DEFINED RABBITMQ_LIB)
|
if(DEFINED RABBITMQ_LIB)
|
||||||
find_library(RMQ_LIB rabbitmq PATHS ${RABBITMQ_LIB} NO_DEFAULT_PATH)
|
find_library(RMQ_LIB rabbitmq PATHS ${RABBITMQ_LIB} NO_DEFAULT_PATH)
|
||||||
|
else()
|
||||||
|
find_library(RMQ_LIB rabbitmq)
|
||||||
endif()
|
endif()
|
||||||
find_library(RMQ_LIB rabbitmq)
|
if(RMQ_LIB MATCHES "NOTFOUND")
|
||||||
if(RMQ_LIB STREQUAL "RMQ_LIB-NOTFOUND")
|
|
||||||
set(DEPS_OK FALSE CACHE BOOL "If all the dependencies were found.")
|
set(DEPS_OK FALSE CACHE BOOL "If all the dependencies were found.")
|
||||||
message(FATAL_ERROR "Cannot find RabbitMQ libraries, please define the path to the libraries with -DRABBITMQ_LIB=<path>")
|
message(FATAL_ERROR "Cannot find RabbitMQ libraries, please define the path to the libraries with -DRABBITMQ_LIB=<path>")
|
||||||
else()
|
else()
|
||||||
@ -201,9 +202,10 @@ macro(check_dirs)
|
|||||||
|
|
||||||
if(DEFINED RABBITMQ_HEADERS)
|
if(DEFINED RABBITMQ_HEADERS)
|
||||||
find_file(RMQ_HEADERS amqp.h PATHS ${RABBITMQ_HEADERS} NO_DEFAULT_PATH)
|
find_file(RMQ_HEADERS amqp.h PATHS ${RABBITMQ_HEADERS} NO_DEFAULT_PATH)
|
||||||
|
else()
|
||||||
|
find_file(RMQ_HEADERS amqp.h)
|
||||||
endif()
|
endif()
|
||||||
find_file(RMQ_HEADERS amqp.h)
|
if(RMQ_HEADERS MATCHES "NOTFOUND")
|
||||||
if(RMQ_HEADERS STREQUAL "RMQ_HEADERS-NOTFOUND")
|
|
||||||
set(DEPS_OK FALSE CACHE BOOL "If all the dependencies were found.")
|
set(DEPS_OK FALSE CACHE BOOL "If all the dependencies were found.")
|
||||||
message(FATAL_ERROR "Cannot find RabbitMQ headers, please define the path to the headers with -DRABBITMQ_HEADERS=<path>")
|
message(FATAL_ERROR "Cannot find RabbitMQ headers, please define the path to the headers with -DRABBITMQ_HEADERS=<path>")
|
||||||
else()
|
else()
|
||||||
|
|||||||
Reference in New Issue
Block a user