Sisyphus repository
Last update: 28 september 2020 | SRPMs: 17704 | Visits: 19306572
en ru br
ALT Linux repos
S:2.2.2-alt1

Group :: Engineering
RPM: wsjtx

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: wsjtx-1.9-alt-cmake.patch
Download


diff --git a/jtdx/wsjtx/CMake/Modules/Findhamlib.cmake b/jtdx/wsjtx/CMake/Modules/Findhamlib.cmake
index 340bde1..7049295 100644
--- a/jtdx/wsjtx/CMake/Modules/Findhamlib.cmake
+++ b/jtdx/wsjtx/CMake/Modules/Findhamlib.cmake
@@ -76,7 +76,21 @@ if (WIN32)
   endif ()
 endif ()
 
+set (METALIST)
+
+if (NOT "${hamlib_INCLUDE_DIRS}" STREQUAL "")
+	set (METALIST ${METALIST} hamlib_INCLUDE_DIRS)
+endif (NOT "${hamlib_INCLUDE_DIRS}" STREQUAL "")
+
+if (NOT "${hamlib_LIBRARIES}" STREQUAL "")
+	set (METALIST ${METALIST} hamlib_LIBRARIES)
+endif (NOT "${hamlib_LIBRARIES}" STREQUAL "")
+
+if (NOT "${hamlib_LIBRARY_DIRS}" STREQUAL "")
+	set (METALIST ${METALIST} hamlib_LIBRARY_DIRS)
+endif (NOT "${hamlib_LIBRARY_DIRS}" STREQUAL "")
+
 # Handle the  QUIETLY and REQUIRED  arguments and set  HAMLIB_FOUND to
 # TRUE if all listed variables are TRUE
 include (FindPackageHandleStandardArgs)
-find_package_handle_standard_args (hamlib DEFAULT_MSG hamlib_INCLUDE_DIRS hamlib_LIBRARIES hamlib_LIBRARY_DIRS)
+find_package_handle_standard_args (hamlib DEFAULT_MSG ${METALIST})
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin