libvncserver: fix configure argument on openssl when disabled

When openssl is not included in the PACKAGECONFIG it
shouldn't try to compile with openssl.

libvncserver CMakeLists.txt activates all of its options and
tries to find libssl.so. CMake finds it inside the native
sysroot which could be the wrong architecture when linking.

Signed-off-by: Maxime Roussin-Bélanger <maxime.roussinbelanger@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Maxime Roussin-Bélanger
2019-01-21 17:12:43 -05:00
committed by Khem Raj
parent 587cdd42bb
commit b2480dbeb6
@@ -17,7 +17,7 @@ PACKAGECONFIG ??= " \
PACKAGECONFIG[gcrypt] = ",,libgcrypt,libgcrypt"
PACKAGECONFIG[gnutls] = ",,gnutls"
PACKAGECONFIG[jpeg] = ",-DWITH_JPEG=OFF,jpeg"
PACKAGECONFIG[openssl] = ",,openssl"
PACKAGECONFIG[openssl] = ",-DWITH_OPENSSL=OFF,openssl"
PACKAGECONFIG[png] = ",-DWITH_PNG=OFF,libpng,libpng"
PACKAGECONFIG[systemd] = ",,systemd"
PACKAGECONFIG[sdl] = ",,libsdl2"