]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
cmake: do not reference undefined variables
authorKefu Chai <kchai@redhat.com>
Fri, 29 Jul 2016 04:48:51 +0000 (12:48 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 29 Jul 2016 15:12:33 +0000 (23:12 +0800)
* 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>
CMakeLists.txt

index 3542554076e1d01332685d18b0b85b50e4a08134..7edf4566bdd40065118cab08cefa8b882f0714c8 100644 (file)
@@ -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)