mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-08-10 05:03:02 +03:00
Merge pull request #5837 from robert-shade/robert-shade/add_subdirectory_support
Allow building as a subdir
This commit is contained in:
4
ChangeLog.d/cmake_add_subdirectory_support.txt
Normal file
4
ChangeLog.d/cmake_add_subdirectory_support.txt
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
Changes
|
||||||
|
* Add aliases for libraries so that the normal MbedTLS::* targets
|
||||||
|
work when MbedTLS is built as a subdirectory. Allows use of
|
||||||
|
CMake's FetchContent, as requested in #5688.
|
@@ -291,6 +291,7 @@ if(USE_SHARED_MBEDTLS_LIBRARY)
|
|||||||
endif(USE_SHARED_MBEDTLS_LIBRARY)
|
endif(USE_SHARED_MBEDTLS_LIBRARY)
|
||||||
|
|
||||||
foreach(target IN LISTS target_libraries)
|
foreach(target IN LISTS target_libraries)
|
||||||
|
add_library(MbedTLS::${target} ALIAS ${target}) # add_subdirectory support
|
||||||
# Include public header files from /include and other directories
|
# Include public header files from /include and other directories
|
||||||
# declared by /3rdparty/**/CMakeLists.txt. Include private header files
|
# declared by /3rdparty/**/CMakeLists.txt. Include private header files
|
||||||
# from /library and others declared by /3rdparty/**/CMakeLists.txt.
|
# from /library and others declared by /3rdparty/**/CMakeLists.txt.
|
||||||
|
Reference in New Issue
Block a user