summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKiyoshi Aman <kiyoshi.aman@gmail.com>2020-09-24 12:04:04 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2020-09-24 12:04:04 -0500
commitde187a6099b234689fe794050f3cf21e572021b9 (patch)
tree77391456e05a9108b3f77140219827aaba8bbfa6
parent227d37fc9364b977660f2545c8e2650b1059a023 (diff)
downloadhorizon-de187a6099b234689fe794050f3cf21e572021b9.tar.gz
horizon-de187a6099b234689fe794050f3cf21e572021b9.tar.bz2
horizon-de187a6099b234689fe794050f3cf21e572021b9.tar.xz
horizon-de187a6099b234689fe794050f3cf21e572021b9.zip
Qt UI: Explicitly find OpenSSL using CMake
-rw-r--r--ui/qt5/CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/qt5/CMakeLists.txt b/ui/qt5/CMakeLists.txt
index a138f07..e94e5b9 100644
--- a/ui/qt5/CMakeLists.txt
+++ b/ui/qt5/CMakeLists.txt
@@ -63,9 +63,10 @@ IF(UNSUPPORTED_NONFREE_FIRMWARE)
LIST(APPEND UI_SOURCES firmwarepage.cc)
ENDIF(UNSUPPORTED_NONFREE_FIRMWARE)
+find_package(OpenSSL REQUIRED COMPONENTS Crypto)
include_directories(${CMAKE_SOURCE_DIR}/3rdparty)
add_executable(horizon-qt5 ${UI_SOURCES})
-target_link_libraries(horizon-qt5 Qt5::Network Qt5::Widgets crypto)
+target_link_libraries(horizon-qt5 Qt5::Network Qt5::Widgets OpenSSL::Crypto)
IF("cxx_std_17" IN_LIST CMAKE_CXX_COMPILE_FEATURES)
set_property(TARGET horizon-qt5 PROPERTY CXX_STANDARD 17)