Merge pull request #11896 from AdmiralCurtiss/mbedtls-cmake

Fix lingering CMAKE_REQUIRED_INCLUDES variable from FindMBEDTLS.
This commit is contained in:
Admiral H. Curtiss 2023-06-08 15:26:22 +02:00 committed by GitHub
commit 4905acf080
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -15,6 +15,7 @@ check_cxx_source_compiles("
#endif #endif
int main() {}" int main() {}"
MBEDTLS_VERSION_OK) MBEDTLS_VERSION_OK)
unset(CMAKE_REQUIRED_INCLUDES)
include(FindPackageHandleStandardArgs) include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(MBEDTLS DEFAULT_MSG find_package_handle_standard_args(MBEDTLS DEFAULT_MSG