diff options
author | Pierre Ossman <ossman@cendio.se> | 2014-10-28 16:58:14 +0100 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2014-10-28 16:58:14 +0100 |
commit | 95491397a500dddc38583af8830c688a11ff36e5 (patch) | |
tree | 3e8abf4d2b76e6e5f4021e4aced75a806ce1a6de /cmake | |
parent | 4790e114da83d5a2b4a048f3774f9b1751edc5ae (diff) | |
download | tigervnc-95491397a500dddc38583af8830c688a11ff36e5.tar.gz tigervnc-95491397a500dddc38583af8830c688a11ff36e5.zip |
Only link with crypt32 on Windows
crypt32 is a Windows thing, and it is used no matter the crypto
backend.
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/StaticBuild.cmake | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cmake/StaticBuild.cmake b/cmake/StaticBuild.cmake index 67f01b2f..46204b55 100644 --- a/cmake/StaticBuild.cmake +++ b/cmake/StaticBuild.cmake @@ -34,7 +34,7 @@ if(BUILD_STATIC) set(GNUTLS_LIBRARIES "-Wl,-Bstatic -lgnutls -ltasn1") if(NETTLE_LIBRARY) - set(GNUTLS_LIBRARIES "${GNUTLS_LIBRARIES} -lnettle -lhogweed -lgmp -lcrypt32") + set(GNUTLS_LIBRARIES "${GNUTLS_LIBRARIES} -lnettle -lhogweed -lgmp") endif() if(GCRYPT_LIBRARY) set(GNUTLS_LIBRARIES "${GNUTLS_LIBRARIES} -lgcrypt -lgpg-error") @@ -42,6 +42,11 @@ if(BUILD_STATIC) set(GNUTLS_LIBRARIES "${GNUTLS_LIBRARIES} -Wl,-Bdynamic") + # GnuTLS uses various crypto-api stuff + if (WIN32) + set(GNUTLS_LIBRARIES "${GNUTLS_LIBRARIES} -lcrypt32") + endif() + # nanosleep() lives here on Solaris if(${CMAKE_SYSTEM_NAME} MATCHES "SunOS") set(GNUTLS_LIBRARIES "${GNUTLS_LIBRARIES} -lrt") |