build: Rephrase check-version message when build version is disabled

This commit is contained in:
Gabriel Ferreira
2022-04-23 20:14:38 -03:00
parent 74503981cc
commit 983725f449
2 changed files with 6 additions and 2 deletions

View File

@@ -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()

4
ns3
View File

@@ -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,