From 8bac1c1eeb22eb96676b97c32883e44da5c9ab4f Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Fri, 29 Jul 2016 12:48:51 +0800 Subject: [PATCH] cmake: do not reference undefined variables * 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 --- CMakeLists.txt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3542554076e1d..7edf4566bdd40 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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}) @@ -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) -- 2.39.5