mirror of
https://github.com/GerbilSoft/rvthtool.git
synced 2025-06-18 11:35:33 -04:00
[cmake] CheckNettle2or3.cmake: Also export NETTLE_FOUND in the PARENT_SCOPE.
NETTLE_FOUND may be used to determine if libnettle should be
linked to other libraries and/or executables.
This fixes a regression from commit 03ce73c612
.
([cmake] CheckNettle2or3.cmake: Convert the macro to a function.)
This commit is contained in:
parent
f86d5c4ad4
commit
2029a71346
@ -13,4 +13,5 @@ apt-get -y install \
|
||||
\
|
||||
qtbase5-dev \
|
||||
qttools5-dev \
|
||||
qttools5-dev-tools
|
||||
qttools5-dev-tools \
|
||||
libkf5widgetsaddons-dev
|
||||
|
@ -6,6 +6,7 @@ FUNCTION(CHECK_NETTLE_2_OR_3)
|
||||
FIND_PACKAGE(NETTLE)
|
||||
SET(HAVE_NETTLE ${NETTLE_FOUND})
|
||||
SET(HAVE_NETTLE ${NETTLE_FOUND} PARENT_SCOPE)
|
||||
SET(NETTLE_FOUND ${NETTLE_FOUND} PARENT_SCOPE)
|
||||
IF(HAVE_NETTLE)
|
||||
# Check if this is Nettle 3.x.
|
||||
# Nettle 3.1 added version.h, which isn't available
|
||||
|
@ -92,10 +92,10 @@ ELSE()
|
||||
SET(QRVTHTOOL_TRANSLATIONS_DIRECTORY "${CMAKE_INSTALL_PREFIX}/${DIR_INSTALL_TRANSLATIONS}")
|
||||
ENDIF()
|
||||
|
||||
# KDE5: Check for KWidgetsAddons headers for notification sounds.
|
||||
# KF5/KF6: Check for KWidgetsAddons headers for notification sounds.
|
||||
IF(UNIX AND NOT APPLE)
|
||||
# Reference: http://www.proli.net/2014/06/21/porting-your-project-to-qt5kf5/
|
||||
# Find KDE5 Extra CMake Modules.
|
||||
# Find KF5/KF6 Extra CMake Modules.
|
||||
FIND_PACKAGE(ECM ${ECM_MINIMUM_VERSION} NO_MODULE)
|
||||
IF(ECM_MODULE_PATH AND ECM_KDE_MODULE_DIR)
|
||||
# Make sure ECM's CMake files don't create an uninstall rule.
|
||||
@ -104,7 +104,7 @@ IF(UNIX AND NOT APPLE)
|
||||
# Don't add KDE tests to the CTest build.
|
||||
SET(KDE_SKIP_TEST_SETTINGS TRUE)
|
||||
|
||||
# Include KDE5 CMake modules.
|
||||
# Include KF5/KF6 CMake modules.
|
||||
LIST(APPEND CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR})
|
||||
# NOTE: The following are not needed for rvthtool and cause
|
||||
# duplicate moc generation, but we're leaving it here for reference.
|
||||
@ -116,7 +116,7 @@ IF(UNIX AND NOT APPLE)
|
||||
# NOTE: Not needed because KDECompilerSettings isn't used.
|
||||
#STRING(REPLACE "-std=iso9899:1990" "" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
|
||||
|
||||
# Find KDE5. (TODO: Version?)
|
||||
# Find KF5/KF6. (TODO: Version?)
|
||||
FIND_PACKAGE(${KF_NS} ${KF_MIN} COMPONENTS WidgetsAddons)
|
||||
IF(${KF_NS}WidgetsAddons_FOUND)
|
||||
SET(HAVE_KF_WidgetsAddons 1)
|
||||
|
Loading…
Reference in New Issue
Block a user