summaryrefslogtreecommitdiffstats
path: root/Help/guide/tutorial/Step11/MathFunctions
diff options
context:
space:
mode:
authorDenis Thulin <denis.thulin@enyx.fr>2019-11-07 14:39:52 (GMT)
committerDenis Thulin <denis.thulin@enyx.fr>2019-11-07 15:44:12 (GMT)
commit24d52daf49e8da92bf21eeb9f3687c84993ba2b6 (patch)
treeff6c2fb350c557e4c9170618f86f85090ae97259 /Help/guide/tutorial/Step11/MathFunctions
parent8f3cbe3c65e1c723319d8c63ef7f3e3c8ef5b59d (diff)
downloadCMake-24d52daf49e8da92bf21eeb9f3687c84993ba2b6.zip
CMake-24d52daf49e8da92bf21eeb9f3687c84993ba2b6.tar.gz
CMake-24d52daf49e8da92bf21eeb9f3687c84993ba2b6.tar.bz2
FindOpenSSL: Lookup all pkg-config directories
When using a custom sysroot to build things using pkg-config, some of the output variables feature the sysroot while others do not: ```console $ export PKG_CONFIG_SYSROOT_DIR=/path/to/sysroot $ export PKG_CONFIG_LIBDIR=/path/to/sysroot/usr/lib/pkgconfig $ pkg-config --cflags-only-I openssl -I/path/to/sysroot/usr/include/ $ pkg-config --variable=includedir openssl /usr/include $ pkg-config --libs-only-L openssl -L/path/to/sysroot/usr/lib $ pkg-config --variable=libdir openssl /usr/lib ``` When using `pkg_check_modules`, it's pretty much the same: ```cmake pkg_check_modules(_OPENSSL QUIET openssl) _OPENSSL_INCLUDE_DIRS == /path/to/sysroot/usr/include/ _OPENSSL_INCLUDEDIR == /usr/include _OPENSSL_LIBRARY_DIRS == -L/path/to/sysroot/usr/lib _OPENSSL_LIBDIR == /usr/lib ``` However, FindOpenSSL only searches for headers in `INCLUDEDIR` and libraries in `LIBDIR` instead of searching `INCLUDE_DIRS` and `LIBRARY_DIRS` as well. This fixes that behaviour. Fixes: #16885 Signed-off-by: Denis Thulin <denis.thulin@enyx.fr>
Diffstat (limited to 'Help/guide/tutorial/Step11/MathFunctions')
0 files changed, 0 insertions, 0 deletions