build: Exempt paths to external libraries from the ns3 modules check

This commit is contained in:
Gabriel Ferreira
2021-12-10 21:05:28 -03:00
parent c333dbc0cd
commit f61eb31909

View File

@@ -417,6 +417,12 @@ macro(
# cmake-format: on
set(missing_dependencies FALSE)
foreach(lib ${libraries_to_link})
# skip check for ns-3 modules if its a path to a library
if(EXISTS ${lib})
continue()
endif()
# check if the example depends on disabled modules
string(REPLACE "lib" "" lib ${lib})
if(NOT (${lib} IN_LIST ns3-all-enabled-modules))
set(missing_dependencies TRUE)