build: Add NS3_FORCE_LOCAL_DEPENDENCIES option to ignore system directories

This commit is contained in:
Gabriel Ferreira
2024-06-11 17:55:23 +02:00
parent 55abe1f10a
commit b98b408f72
4 changed files with 20 additions and 0 deletions

View File

@@ -221,6 +221,13 @@ macro(process_options)
unset(CMAKE_VERBOSE_MAKEFILE CACHE)
endif()
if(${NS3_FORCE_LOCAL_DEPENDENCIES})
set(CMAKE_FIND_FRAMEWORK NEVER)
set(CMAKE_FIND_APPBUNDLE NEVER)
set(CMAKE_FIND_USE_CMAKE_SYSTEM_PATH FALSE)
set(CMAKE_FIND_USE_SYSTEM_ENVIRONMENT_PATH FALSE)
endif()
# Set warning level and warning as errors
if(${NS3_WARNINGS})
if(DEFINED MSVC)