mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-29 20:42:56 +02:00
add a message for Win32 users to generate the MSVC GnuTLS import library
This commit is contained in:
parent
3d071e85d5
commit
31382b7e12
1 changed files with 9 additions and 2 deletions
|
@ -22,7 +22,6 @@ if (GNUTLS_LIBRARY AND GNUTLS_INCLUDE_DIRS)
|
||||||
# in cache already
|
# in cache already
|
||||||
set(GNUTLS_FOUND TRUE)
|
set(GNUTLS_FOUND TRUE)
|
||||||
else ()
|
else ()
|
||||||
|
|
||||||
set(GNUTLS_SEARCH_DIRS "${GNUTLS_ROOT_DIR}" "$ENV{HIFI_LIB_DIR}/gnutls")
|
set(GNUTLS_SEARCH_DIRS "${GNUTLS_ROOT_DIR}" "$ENV{HIFI_LIB_DIR}/gnutls")
|
||||||
|
|
||||||
find_path(GNUTLS_INCLUDE_DIR gnutls/gnutls.h PATH_SUFFIXES include HINTS ${GNUTLS_SEARCH_DIRS})
|
find_path(GNUTLS_INCLUDE_DIR gnutls/gnutls.h PATH_SUFFIXES include HINTS ${GNUTLS_SEARCH_DIRS})
|
||||||
|
@ -31,4 +30,12 @@ else ()
|
||||||
|
|
||||||
include(FindPackageHandleStandardArgs)
|
include(FindPackageHandleStandardArgs)
|
||||||
find_package_handle_standard_args(GNUTLS DEFAULT_MSG GNUTLS_INCLUDE_DIR GNUTLS_LIBRARY)
|
find_package_handle_standard_args(GNUTLS DEFAULT_MSG GNUTLS_INCLUDE_DIR GNUTLS_LIBRARY)
|
||||||
|
|
||||||
|
if (WIN32 AND NOT GNUTLS_FOUND)
|
||||||
|
message(STATUS "If you're generating a MSVC environment, you'll need to run the command")
|
||||||
|
message(STATUS "$GnuTLS-DIR\\bin>lib /def:libgnutls-28.def")
|
||||||
|
message(STATUS "From the MSVC command prompt to generate the .lib file and copy it into")
|
||||||
|
message(STATUS "your lib folder. Replace $GnuTLS-DIR in the command with the directory")
|
||||||
|
message(STATUS "containing GnuTLS.")
|
||||||
|
endif ()
|
||||||
endif ()
|
endif ()
|
Loading…
Reference in a new issue