Skip to content

Commit fb75e89

Browse files
Set CMake policies for newer versions of CMake
Make sure that CMP0012 is set to NEW, without which FindPython3 and FindPython2 functionality becomes broken with CMake 3.18.2 if searching by location. Ensure CMP0011 is set to NEW to avoid warnings being issued about policy push / pop with CMake 3.18.0 or newer. Signed-off-by: Paul Elliott <[email protected]>
1 parent 1d9c110 commit fb75e89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# will be removed as well as this note.
1717
#
1818

19-
cmake_minimum_required(VERSION 2.6)
19+
cmake_minimum_required(VERSION 2.6...3.18)
2020
if(TEST_CPP)
2121
project("mbed TLS" C CXX)
2222
else()

0 commit comments

Comments
 (0)