Commit 670beff8 authored by Johan Ström's avatar Johan Ström

Fix older cmake..

parent 55ab92bd
Pipeline #472 failed with stage
in 47 seconds
......@@ -25,3 +25,9 @@ endif()
INCLUDE(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(CppDb DEFAULT_MSG CppDb_LIBRARIES CppDb_INCLUDE_DIRS)
# Modern CMake suggests that variable name is named after FindXxx i.e. same case.
# Older cmake (3.0) ignores case and always registers UPPERCASE_FOUND
if(NOT DEFINED CppDb_FOUND)
set(CppDb_FOUND ${CPPDB_FOUND})
endif()
\ No newline at end of file
......@@ -26,3 +26,9 @@ endif()
INCLUDE(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(CppUnit DEFAULT_MSG CppUnit_LIBRARIES CppUnit_INCLUDE_DIRS)
# Modern CMake suggests that variable name is named after FindXxx i.e. same case.
# Older cmake (3.0) ignores case and always registers UPPERCASE_FOUND
if(NOT DEFINED CppUnit_FOUND)
set(CppUnit_FOUND ${CPPUNIT_FOUND})
endif()
\ No newline at end of file
......@@ -22,6 +22,12 @@ find_library(Mosquitto_LIBRARY NAMES libmosquitto mosquitto)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(Mosquittopp DEFAULT_MSG Mosquittopp_LIBRARY Mosquittopp_INCLUDE_DIR)
# Modern CMake suggests that variable name is named after FindXxx i.e. same case.
# Older cmake (3.0) ignores case and always registers UPPERCASE_FOUND
if(NOT DEFINED Mosquittopp_FOUND)
set(Mosquittopp_FOUND ${MOSQUITTOPP_FOUND})
endif()
if(Mosquittopp_FOUND)
set(Mosquittopp_LIBRARIES ${Mosquittopp_LIBRARY} ${Mosquitto_LIBRARY})
else(Mosquittopp_FOUND)
......
......@@ -19,6 +19,12 @@ find_library(Qpid_TYPES_LIBRARY NAMES qpidtypes)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(Qpid DEFAULT_MSG Qpid_MESSAGING_LIBRARY Qpid_INCLUDE_DIR)
# Modern CMake suggests that variable name is named after FindXxx i.e. same case.
# Older cmake (3.0) ignores case and always registers UPPERCASE_FOUND
if(NOT DEFINED Qpid_FOUND)
set(Qpid_FOUND ${QPID_FOUND})
endif()
if(Qpid_FOUND)
set(Qpid_LIBRARIES ${Qpid_MESSAGING_LIBRARY} ${Qpid_TYPES_LIBRARY})
else(Qpid_FOUND)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment