From 983725f449b1bcf127e0d70a612e12d97572de5f Mon Sep 17 00:00:00 2001 From: Gabriel Ferreira Date: Sat, 23 Apr 2022 20:14:38 -0300 Subject: [PATCH] build: Rephrase check-version message when build version is disabled --- build-support/custom-modules/ns3-versioning.cmake | 4 ++-- ns3 | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/build-support/custom-modules/ns3-versioning.cmake b/build-support/custom-modules/ns3-versioning.cmake index 90cbc2585..afbe321e3 100644 --- a/build-support/custom-modules/ns3-versioning.cmake +++ b/build-support/custom-modules/ns3-versioning.cmake @@ -73,8 +73,8 @@ endfunction() function(configure_embedded_version) if(NOT ${NS3_ENABLE_BUILD_VERSION}) add_custom_target( - check-version COMMAND echo Reconfigure ns-3 with - NS3_ENABLE_BUILD_VERSION=ON + check-version COMMAND echo Build version feature disabled. Reconfigure + ns-3 with NS3_ENABLE_BUILD_VERSION=ON ) return() endif() diff --git a/ns3 b/ns3 index 67dbaa5af..d8d1409c7 100755 --- a/ns3 +++ b/ns3 @@ -931,6 +931,10 @@ def build_step(args, target = "sphinx" args.build.append("doxygen") + if target == "check-version": + global run_verbose + run_verbose = False # Do not print the equivalent cmake command + cmake_build(current_cmake_cache_folder, jobs=args.jobs, target=target,