Skip to content

Commit

Permalink
build: Avoid using non-initialized variable
Browse files Browse the repository at this point in the history
Only shows up on MSVC
  • Loading branch information
Gabrielcarvfer committed Jan 24, 2025
1 parent 2cae0c4 commit 808414c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build-support/custom-modules/ns3-module-macros.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,10 @@ endfunction()
function(separate_ns3_from_non_ns3_libs libname libraries_to_link
ns_libraries_to_link non_ns_libraries_to_link
)
set(non_ns_libs ${CMAKE_THREAD_LIBS_INIT})
set(non_ns_libs)
if(DEFINED CMAKE_THREAD_LIBS_INIT)
list(APPEND non_ns_libs ${CMAKE_THREAD_LIBS_INIT})
endif()
set(ns_libs)
foreach(library ${libraries_to_link})
remove_lib_prefix("${library}" module_name)
Expand Down

0 comments on commit 808414c

Please sign in to comment.