]> source.dussan.org Git - tigervnc.git/commitdiff
Fix bad library references for some static deps
authorPierre Ossman <ossman@cendio.se>
Mon, 7 Dec 2020 11:34:03 +0000 (12:34 +0100)
committerPierre Ossman <ossman@cendio.se>
Mon, 7 Dec 2020 11:34:03 +0000 (12:34 +0100)
cmake/StaticBuild.cmake

index c7c935263e8c1da70edd00550713dbcc37abcf4a..1af9893b9cf23a87eb43768b22f4c20bde3757b2 100644 (file)
@@ -63,7 +63,7 @@ if(BUILD_STATIC)
     FIND_LIBRARY(TASN1_LIBRARY NAMES tasn1 libtasn1
       HINTS ${PC_GNUTLS_LIBDIR} ${PC_GNUTLS_LIBRARY_DIRS})
     FIND_LIBRARY(IDN2_LIBRARY NAMES idn2 libidn2
-      HINTS ${PC_GETTEXT_LIBDIR} ${PC_GETTEXT_LIBRARY_DIRS})
+      HINTS ${PC_GNUTLS_LIBDIR} ${PC_GNUTLS_LIBRARY_DIRS})
 
     set(GNUTLS_LIBRARIES "-Wl,-Bstatic -lgnutls")
 
@@ -77,7 +77,7 @@ if(BUILD_STATIC)
       set(GNUTLS_LIBRARIES "${GNUTLS_LIBRARIES} -lgcrypt -lgpg-error")
     endif()
     if(IDN2_LIBRARY)
-      set(GETTEXT_LIBRARIES "${GETTEXT_LIBRARIES} -lidn2")
+      set(GNUTLS_LIBRARIES "${GNUTLS_LIBRARIES} -lidn2")
     endif()
 
     set(GNUTLS_LIBRARIES "${GNUTLS_LIBRARIES} -Wl,-Bdynamic")