mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-15 11:38:49 -07:00
Find OpenSSL on Windows
This commit is contained in:
parent
da8f57f397
commit
316c9d13a0
4 changed files with 35 additions and 8 deletions
19
cmake/expanduser.cmake
Normal file
19
cmake/expanduser.cmake
Normal 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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue