build: Fix examples filtering
This commit is contained in:
@@ -1398,10 +1398,9 @@ macro(build_example)
|
||||
# Filter examples out if they don't contain one of the filtered in modules
|
||||
set(filtered_in ON)
|
||||
if(NS3_FILTER_MODULE_EXAMPLES_AND_TESTS)
|
||||
set(filtered_in OFF)
|
||||
foreach(filtered_module NS3_FILTER_MODULE_EXAMPLES_AND_TESTS)
|
||||
if(${filtered_module} IN_LIST EXAMPLE_LIBRARIES_TO_LINK)
|
||||
set(filtered_in ON)
|
||||
foreach(required_module EXAMPLE_LIBRARIES_TO_LINK)
|
||||
if(NOT (${required_module} IN_LIST NS3_FILTER_MODULE_EXAMPLES_AND_TESTS))
|
||||
set(filtered_in OFF)
|
||||
endif()
|
||||
endforeach()
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user