build: remove unnecessary CMake version check

This commit is contained in:
Gabriel Ferreira
2023-10-26 13:53:51 -03:00
parent 33756a9298
commit d595f91f6b
2 changed files with 2 additions and 2 deletions

2
ns3
View File

@@ -878,7 +878,7 @@ def cmake_build(current_cmake_cache_folder, output, jobs, target=None, dry_run=F
cmake, version = cmake_check_version()
# Older CMake versions don't accept the number of jobs directly
jobs_part = ("-j %d" % jobs) if parse_version(version) >= parse_version("3.12.0") else ""
jobs_part = ("-j %d" % jobs)
target_part = (" --target %s" % target) if target else ""
cmake_build_command = "%s --build . %s%s" % (cmake, jobs_part, target_part)