Skip to content

Commit

Permalink
cmake: do not reference undefined variables
Browse files Browse the repository at this point in the history
* AIO_LIBS is now named AIO_LIBARIES, and there is not point to print
  out its path
* USE_NSS is not defined if NSS is not checked, so if(USE_NSS) is better
  here.

Signed-off-by: Kefu Chai <kchai@redhat.com>
  • Loading branch information
tchaikov committed Jul 29, 2016
1 parent 94c2e12 commit 4ca2ab7
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions CMakeLists.txt
Expand Up @@ -188,7 +188,6 @@ if(LINUX)

find_package(aio REQUIRED)
set(HAVE_LIBAIO ${AIO_FOUND})
message(STATUS "${AIO_LIBS}")

find_package(blkid REQUIRED)
set(HAVE_BLKID ${BLKID_FOUND})
Expand Down Expand Up @@ -307,17 +306,17 @@ else ()
endif (${WITH_NSS})

option(WITH_SSL "SSL build selected" ON)
if (${USE_NSS})
if(USE_NSS)
#nss
set(SSL_LIBRARIES ${NSS_LIBRARIES})
message(STATUS "SSL with NSS selected (Libs: ${SSL_LIBRARIES})")
else (${USE_NSS})
else(USE_NSS)
#openssl
find_package(OpenSSL REQUIRED)
set(HAVE_OPENSSL ON)
set(SSL_LIBRARIES ${OPENSSL_LIBRARIES})
message(STATUS "SSL with OpenSSL selected (Libs: ${SSL_LIBRARIES})")
endif(${USE_NSS})
endif(USE_NSS)

option(WITH_XIO "Enable XIO messaging" OFF)
if(WITH_XIO)
Expand Down

0 comments on commit 4ca2ab7

Please sign in to comment.