Find OpenSSL on Windows

This commit is contained in:
ZeldaZach 2023-01-11 18:58:02 -05:00
parent da8f57f397
commit 316c9d13a0
4 changed files with 35 additions and 8 deletions

19
cmake/expanduser.cmake Normal file
View file

@ -0,0 +1,19 @@
# expands ~ to user home directory
#
# usage:
# expanduser("~/code" x)
function(expanduser in outvar)
if(CMAKE_VERSION VERSION_LESS 3.21)
get_filename_component(out ${in} ABSOLUTE)
else()
file(REAL_PATH ${in} out EXPAND_TILDE)
endif()
set(${outvar}
${out}
PARENT_SCOPE
)
endfunction(expanduser)