diff options
author | lhuang04 <lhuang04@fb.com> | 2021-08-14 05:56:07 -0700 |
---|---|---|
committer | lhuang04 <lhuang04@fb.com> | 2021-08-17 12:50:11 -0700 |
commit | 8c51b73c86beca145271acdfa400631e5456fd7d (patch) | |
tree | ded142e58a2bc32a6a49d127d32d94df510ae0bf /CMakeLists.txt | |
parent | 93a3ca6caf20e0e1a90c86ee2fc03e9f1fb4ebfa (diff) | |
download | mbedtls-8c51b73c86beca145271acdfa400631e5456fd7d.zip mbedtls-8c51b73c86beca145271acdfa400631e5456fd7d.tar.gz mbedtls-8c51b73c86beca145271acdfa400631e5456fd7d.tar.bz2 |
Update CMake version for CMP0090
Summary:
[CMP0090](https://cmake.org/cmake/help/latest/policy/CMP0090.html) was introduced in CMake version 3.15. The CMake version guard
should be greater or equal to 3.15.
My cmake version is 3.14.5, and run into the following error.
```
cmake --version
cmake version 3.14.5
```
```
CMake Error at CMakeLists.txt:338 (cmake_policy):
Policy "CMP0090" is not known to this version of CMake.
-- Configuring incomplete, errors occurred!
Test Plan:
```
cmake
```
Signed-off-by: lhuang04 <lhuang04@fb.com>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index cf74af5..210aba4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -330,7 +330,7 @@ install( DESTINATION "cmake" FILE "MbedTLSTargets.cmake") -if(CMAKE_VERSION VERSION_GREATER 3.14) +if(CMAKE_VERSION VERSION_GREATER 3.15 OR CMAKE_VERSION VERSION_EQUAL 3.15) # Do not export the package by default cmake_policy(SET CMP0090 NEW) |