diff --git a/crypto/CMakeLists.txt b/crypto/CMakeLists.txt index 3b98841..c21fce5 100644 --- a/crypto/CMakeLists.txt +++ b/crypto/CMakeLists.txt @@ -930,9 +930,13 @@ else() endif() if(NOT "${OPENSSLDIR}" STREQUAL "") - add_definitions(-DOPENSSLDIR=${OPENSSLDIR}) + add_definitions(-DOPENSSLDIR=\"${OPENSSLDIR}\") else() - add_definitions(-DOPENSSLDIR=${CMAKE_INSTALL_PREFIX}/etc/ssl) + if(WIN32) + add_definitions(-DOPENSSLDIR=C:/libressl/ssl) + else() + add_definitions(-DOPENSSLDIR=\"${CMAKE_INSTALL_PREFIX}/etc/ssl\") + endif() endif() file(READ ${CMAKE_CURRENT_SOURCE_DIR}/crypto.sym SYMS)