build: bump minimum CMake version to CMake 3.13

Gabriel Ferreira 2023-11-04 18:27:00 -03:00
parent 7060cb1387
commit 3a356f4680
3 changed files with 3 additions and 3 deletions

View File

@ -33,7 +33,7 @@ Changes from ns-3.40 to ns-3-dev
* In preparation to enable C++20, the following actions have been taken due to compiler issues:
* Precompiled headers have been disabled in GCC versions >= 12.2.
* The `restrict` warning has been disabled in GCC versions 12.1-12.3.1.
* Raised minimum CMake version to 3.12.
* Raised minimum CMake version to 3.13.
* Raised minimum C++ version to C++20.
### Changed behavior

View File

@ -1,7 +1,7 @@
# ##############################################################################
# Required CMake version #
# ##############################################################################
cmake_minimum_required(VERSION 3.12..3.12)
cmake_minimum_required(VERSION 3.13..3.13)
# ##############################################################################
# Project name #

2
ns3
View File

@ -858,7 +858,7 @@ def parse_version(version_str):
def cmake_check_version():
# Check CMake version
minimum_cmake_version = "3.12.0"
minimum_cmake_version = "3.13.0"
cmake3 = shutil.which("cmake3")
cmake = cmake3 if cmake3 else shutil.which("cmake")
if not cmake: