build: Drop lib prefix from module targets

This commit is contained in:
Gabriel Ferreira
2024-06-11 17:51:25 +02:00
parent e0714d3119
commit 0d051e6705
4 changed files with 81 additions and 78 deletions

View File

@@ -92,7 +92,7 @@ macro(SUBDIRLIST result curdir)
endmacro()
macro(library_target_name libname targetname)
set(${targetname} lib${libname})
set(${targetname} ${libname})
endmacro()
macro(clear_global_cached_variables)
@@ -199,7 +199,8 @@ macro(process_options)
set(ENABLE_TESTS OFF)
if(${NS3_TESTS} OR ${ns3rc_tests_enabled})
set(ENABLE_TESTS ON)
enable_testing()
# CTest creates a TEST target that conflicts with ns-3 test library
# enable_testing()
else()
list(REMOVE_ITEM libs_to_build test)
endif()