mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-10-06 00:47:26 +00:00
Install CMake files in MbedTLS dir
Right now, CMake files are installed in <prefix>/cmake. That being said, it gets easily bloated, and the standard is to use a directory with the same name as the project. I discovered this issue with this "bug": https://github.com/termux/termux-packages/issues/12416 The issue's author claimed that MbedTLS's files were not installed in the lib directory. But the patch applied by termux team broke CMake's search of MbedTLS config files. So I wanted to upstream the real fix here instead. Here are some examples of projects using directories: - https://github.com/xiph/flac/blob/1.4.2/CMakeLists.txt#L239 - https://gitlab.freedesktop.org/dbus/dbus/-/blob/dbus-1.15.2/CMakeLists.txt#L675 - https://github.com/catchorg/Catch2/blob/v3.2.0/CMakeLists.txt#L62 - https://github.com/capnproto/capnproto/blob/v0.10.2/c++/CMakeLists.txt#L162 Signed-off-by: Issam E. Maghni <[email protected]>
This commit is contained in:
@@ -26,7 +26,7 @@ execute_process(
|
||||
# Locate the package.
|
||||
#
|
||||
|
||||
set(MbedTLS_DIR "${MbedTLS_INSTALL_DIR}/cmake")
|
||||
list(INSERT CMAKE_PREFIX_PATH 0 "${MbedTLS_INSTALL_DIR}")
|
||||
find_package(MbedTLS REQUIRED)
|
||||
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user