Change from ZXCVBN_FOUND to ZXCVBN_LIBRARIES to be aligned with other libraries

This commit is contained in:
Julian Andres Klode 2017-06-28 15:18:24 +02:00 committed by Gianfranco Costamagna
parent 640b09c6b2
commit 34ff6d5f6b
2 changed files with 6 additions and 6 deletions

View File

@ -27,12 +27,12 @@ if (NOT GIT_HEAD OR NOT GIT_DESCRIBE)
set(GIT_DESCRIBE "")
endif()
find_library(ZXCVBN_FOUND zxcvbn)
if(NOT ZXCVBN_FOUND)
find_library(ZXCVBN_LIBRARIES zxcvbn)
if(NOT ZXCVBN_LIBRARIES)
add_library(zxcvbn STATIC zxcvbn/zxcvbn.cpp)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/zxcvbn)
set(ZXCVBN_FOUND zxcvbn)
endif(NOT ZXCVBN_FOUND)
set(ZXCVBN_LIBRARIES zxcvbn)
endif(NOT ZXCVBN_LIBRARIES)
configure_file(version.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/version.h @ONLY)
@ -222,7 +222,7 @@ target_link_libraries(keepassx_core
${keepasshttp_LIB}
${autotype_LIB}
${YUBIKEY_LIBRARIES}
${ZXCVBN_FOUND}
${ZXCVBN_LIBRARIES}
Qt5::Core
Qt5::Network
Qt5::Concurrent

View File

@ -38,7 +38,7 @@ target_link_libraries(keepassxc-cli
${GCRYPT_LIBRARIES}
${GPGERROR_LIBRARIES}
${ZLIB_LIBRARIES}
${ZXCVBN_FOUND})
${ZXCVBN_LIBRARIES})
install(TARGETS keepassxc-cli
BUNDLE DESTINATION . COMPONENT Runtime