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,