From 4df918ae8cae29720c5a576340cb3a7a589128c3 Mon Sep 17 00:00:00 2001 From: Matt Benjamin Date: Tue, 3 May 2016 13:19:43 -0400 Subject: [PATCH] cmake: _FOUND in Findxio.cmake For uniformity, upcase all these variables. Signed-off-by: Matt Benjamin --- CMakeLists.txt | 2 +- cmake/modules/Findxio.cmake | 28 ++++++++++++++-------------- src/CMakeLists.txt | 4 ++-- src/test/messenger/CMakeLists.txt | 4 ++-- 4 files changed, 19 insertions(+), 19 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b02aeabdd00b2..2189b0ef65b38 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -282,7 +282,7 @@ endif(CRYPTOPP_FOUND) option(WITH_XIO "Enable XIO messaging" OFF) if(WITH_XIO) find_package(xio REQUIRED) -set(HAVE_XIO ${Xio_FOUND}) +set(HAVE_XIO ${XIO_FOUND}) endif(WITH_XIO) #option for RGW diff --git a/cmake/modules/Findxio.cmake b/cmake/modules/Findxio.cmake index 1025f492452fc..44cb008aceeb7 100644 --- a/cmake/modules/Findxio.cmake +++ b/cmake/modules/Findxio.cmake @@ -1,9 +1,9 @@ # - Find libxio # Find libxio transport library # -# Xio_INCLUDE_DIR - libxio include dir -# Xio_LIBRARIES - List of libraries -# Xio_FOUND - True if libxio found. +# XIO_INCLUDE_DIR - libxio include dir +# XIO_LIBRARIES - List of libraries +# XIO_FOUND - True if libxio found. set(_xio_include_path ${HT_DEPENDENCY_INCLUDE_DIR}) set(_xio_lib_path ${HT_DEPENDENCY_LIB_DIR}) @@ -15,25 +15,25 @@ else() list(APPEND _xio_lib_path /lib /usr/lib /usr/local/lib /opt/accelio/lib) endif() -find_path(Xio_INCLUDE_DIR libxio.h NO_DEFAULT_PATH PATHS ${_xio_include_path}) +find_path(XIO_INCLUDE_DIR libxio.h NO_DEFAULT_PATH PATHS ${_xio_include_path}) -find_library(Xio_LIBRARY NO_DEFAULT_PATH NAMES xio PATHS ${_xio_lib_path}) -set(Xio_LIBRARIES ${Xio_LIBRARY}) +find_library(XIO_LIBRARY NO_DEFAULT_PATH NAMES xio PATHS ${_xio_lib_path}) +set(XIO_LIBRARIES ${XIO_LIBRARY}) INCLUDE(FindPackageHandleStandardArgs) -FIND_PACKAGE_HANDLE_STANDARD_ARGS(xio DEFAULT_MSG Xio_LIBRARY Xio_INCLUDE_DIR) +FIND_PACKAGE_HANDLE_STANDARD_ARGS(xio DEFAULT_MSG XIO_LIBRARY XIO_INCLUDE_DIR) -if (Xio_FOUND) - message(STATUS "Found Xio: ${Xio_INCLUDE_DIR} ${Xio_LIBRARY}") +if (XIO_FOUND) + message(STATUS "Found Xio: ${XIO_INCLUDE_DIR} ${XIO_LIBRARY}") else () - message(STATUS "Not Found Xio: ${Xio_INCLUDE_DIR} ${Xio_LIBRARY}") - if (Xio_FIND_REQUIRED) - message(STATUS "Looked for Xio libraries named ${Xio_NAMES}.") + message(STATUS "Not Found Xio: ${XIO_INCLUDE_DIR} ${XIO_LIBRARY}") + if (XIO_FIND_REQUIRED) + message(STATUS "Looked for Xio libraries named ${XIO_NAMES}.") message(FATAL_ERROR "Could NOT find Xio library") endif () endif () mark_as_advanced( - Xio_LIBRARY - Xio_INCLUDE_DIR + XIO_LIBRARY + XIO_INCLUDE_DIR ) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 3a265eb27473e..1cf18b27b035c 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -123,8 +123,8 @@ execute_process( OUTPUT_STRIP_TRAILING_WHITESPACE) if(HAVE_XIO) - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -I${Xio_INCLUDE_DIR}") - list(APPEND EXTRALIBS ${Xio_LIBRARY} pthread rt) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -I${XIO_INCLUDE_DIR}") + list(APPEND EXTRALIBS ${XIO_LIBRARY} pthread rt) endif(HAVE_XIO) # sort out which allocator to use diff --git a/src/test/messenger/CMakeLists.txt b/src/test/messenger/CMakeLists.txt index 1db5a514a5ca9..afe7b703e61ee 100644 --- a/src/test/messenger/CMakeLists.txt +++ b/src/test/messenger/CMakeLists.txt @@ -25,7 +25,7 @@ if(HAVE_XIO) ) target_link_libraries(xio_server os global common ${Boost_REGEX_LIBRARY} - ${Xio_LIBRARY} pthread rt + ${XIO_LIBRARY} pthread rt ${EXTRALIBS} ${CMAKE_DL_LIBS} ) @@ -36,7 +36,7 @@ if(HAVE_XIO) ) target_link_libraries(xio_client os global common ${Boost_REGEX_LIBRARY} - ${Xio_LIBRARY} pthread rt + ${XIO_LIBRARY} pthread rt ${EXTRALIBS} ${CMAKE_DL_LIBS} )