build: (fixes #1197) Silence Boost find_package warning message

This commit is contained in:
Gabriel Ferreira
2025-04-12 13:23:33 +02:00
parent c022047654
commit 302aef3f77

View File

@@ -850,12 +850,14 @@ macro(process_options)
cmake_policy(SET CMP0167 NEW)
endif()
mark_as_advanced(Boost_INCLUDE_DIR)
find_package(Boost)
find_package(Boost QUIET)
if(${Boost_FOUND})
if(NOT ${NS3_FORCE_LOCAL_DEPENDENCIES})
include_directories(${Boost_INCLUDE_DIRS})
endif()
set(CMAKE_REQUIRED_INCLUDES ${Boost_INCLUDE_DIRS})
else()
message(HIGHLIGHTED_STATUS "Boost was not found")
endif()
set(GSL_FOUND FALSE)