mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2025-07-06 15:54:57 +03:00
cmake: lib cleanup and use cmake package_find
* use OPENSSL_ROOT_DIR * add special .configure handling for osx * move readline, curses to cedar Signed-off-by: Andy Walsh <andy.walsh44+github@gmail.com>
This commit is contained in:
8
configure
vendored
8
configure
vendored
@ -25,6 +25,14 @@ if [ ! -z ${CMAKE_INSTALL_PREFIX+x} ]; then
|
||||
CMAKE_FLAGS="-DCMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX}"
|
||||
fi
|
||||
|
||||
if [ -z ${OPENSSL_ROOT_DIR} ]; then
|
||||
unameOut="$(uname -s)"
|
||||
if [ "$unameOut" = "Darwin" ]; then
|
||||
echo "Environment variable OPENSSL_ROOT_DIR not set, using default Homebrew path: /usr/local/opt/openssl/"
|
||||
export OPENSSL_ROOT_DIR="/usr/local/opt/openssl/"
|
||||
fi
|
||||
fi
|
||||
|
||||
(cd tmp && cmake ${CMAKE_FLAGS} .. || exit 1)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user