Skip to content

Commit

Permalink
cmake: Findxio.cmake update Xio OFF by default
Browse files Browse the repository at this point in the history
Option WITH_XIO now OFF but required by default,
Findxio.cmake now using
FIND_PACKAGE_HANDLE_STANDARD_ARGS.

Signed-off-by: Ali Maredia <[email protected]>
  • Loading branch information
alimaredia committed Jan 5, 2016
1 parent 8ef0dfb commit 7151a47
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,9 @@ else()
endif(NSS_FOUND)
endif(CRYPTOPP_FOUND)

option(WITH_XIO "Enable XIO messaging" ON)
option(WITH_XIO "Enable XIO messaging" OFF)
if(WITH_XIO)
find_package(xio)
find_package(xio REQUIRED)
set(HAVE_XIO ${Xio_FOUND})
endif(WITH_XIO)

Expand Down
10 changes: 3 additions & 7 deletions cmake/modules/Findxio.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,10 @@ endif()
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})

if (Xio_INCLUDE_DIR AND Xio_LIBRARY)
set(Xio_FOUND TRUE)
set(Xio_LIBRARIES ${Xio_LIBRARY} )
else ()
set(Xio_FOUND FALSE)
set(Xio_LIBRARIES )
endif ()
INCLUDE(FindPackageHandleStandardArgs)
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}")
Expand Down

0 comments on commit 7151a47

Please sign in to comment.