From d616b77129cbf4b9108eab823cdd1c78d3a6084d Mon Sep 17 00:00:00 2001 From: Gabriel Ferreira Date: Thu, 9 Jun 2022 17:07:41 -0300 Subject: [PATCH] build: call NS3_VERBOSE block earlier to catch early library checks --- build-support/macros-and-definitions.cmake | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/build-support/macros-and-definitions.cmake b/build-support/macros-and-definitions.cmake index dcfe4d64b..e2e109e7e 100644 --- a/build-support/macros-and-definitions.cmake +++ b/build-support/macros-and-definitions.cmake @@ -350,6 +350,16 @@ macro(process_options) set(build_profile_suffix -${build_profile} CACHE INTERNAL "") endif() + if(${NS3_VERBOSE}) + set_property(GLOBAL PROPERTY TARGET_MESSAGES TRUE) + set(CMAKE_FIND_DEBUG_MODE TRUE) + set(CMAKE_VERBOSE_MAKEFILE TRUE CACHE INTERNAL "") + else() + set_property(GLOBAL PROPERTY TARGET_MESSAGES OFF) + unset(CMAKE_FIND_DEBUG_MODE) + unset(CMAKE_VERBOSE_MAKEFILE CACHE) + endif() + # Set warning level and warning as errors if(${NS3_WARNINGS}) if(MSVC) @@ -873,16 +883,6 @@ macro(process_options) endif() endif() - if(${NS3_VERBOSE}) - set_property(GLOBAL PROPERTY TARGET_MESSAGES TRUE) - set(CMAKE_FIND_DEBUG_MODE TRUE) - set(CMAKE_VERBOSE_MAKEFILE TRUE CACHE INTERNAL "") - else() - set_property(GLOBAL PROPERTY TARGET_MESSAGES OFF) - unset(CMAKE_FIND_DEBUG_MODE) - unset(CMAKE_VERBOSE_MAKEFILE CACHE) - endif() - mark_as_advanced(Boost_INCLUDE_DIR) find_package(Boost) if(${Boost_FOUND})