]> source.dussan.org Git - tigervnc.git/commitdiff
Back out previous change
authorBrian P. Hinz <bphinz@users.sf.net>
Tue, 4 Nov 2014 05:00:19 +0000 (00:00 -0500)
committerBrian P. Hinz <bphinz@users.sf.net>
Tue, 4 Nov 2014 05:00:19 +0000 (00:00 -0500)
Needed to merge upstream changes in before creating pull request.

cmake/StaticBuild.cmake

index 49706bd356bf4f689a22d4b711501945b50bedde..df12db41edb02743b9e0b919025590c12058be34 100644 (file)
@@ -30,14 +30,9 @@ if(BUILD_STATIC)
       HINTS ${PC_GNUTLS_LIBDIR} ${PC_GNUTLS_LIBRARY_DIRS})
     FIND_LIBRARY(NETTLE_LIBRARY NAMES nettle libnettle
       HINTS ${PC_GNUTLS_LIBDIR} ${PC_GNUTLS_LIBRARY_DIRS})
-    FIND_LIBRARY(TASN1_LIBRARY NAMES tasn1 libtasn1
-      HINTS ${PC_GNUTLS_LIBDIR} ${PC_GNUTLS_LIBRARY_DIRS})
 
-    set(GNUTLS_LIBRARIES "-Wl,-Bstatic -lgnutls")
+    set(GNUTLS_LIBRARIES "-Wl,-Bstatic -lgnutls -ltasn1")
 
-    if(TASN1_LIBRARY)
-      set(GNUTLS_LIBRARIES "${GNUTLS_LIBRARIES} -ltasn1")
-    endif()
     if(NETTLE_LIBRARY)
       set(GNUTLS_LIBRARIES "${GNUTLS_LIBRARIES} -lnettle -lhogweed -lgmp")
     endif()