Skip to content

Commit

Permalink
build: Remove include directories propagation workaround required by …
Browse files Browse the repository at this point in the history
…CMake <= 3.12
  • Loading branch information
Gabrielcarvfer committed Nov 5, 2023
1 parent a1a6d55 commit 6b928cd
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions build-support/custom-modules/ns3-module-macros.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -297,17 +297,9 @@ function(build_lib)
)

if(NOT ${XCODE})
# Since linking libraries to object libraries in not allowed in older CMake
# releases, we need to import each of their include directories. Otherwise,
# include directories won't be properly propagated
set(temp)
foreach(target ${ns_libraries_to_link})
list(APPEND temp
"$<TARGET_PROPERTY:${target},INTERFACE_INCLUDE_DIRECTORIES>"
)
endforeach()
target_include_directories(${lib${BLIB_LIBNAME}}-obj PRIVATE ${temp})
unset(temp)
target_link_libraries(
${lib${BLIB_LIBNAME}}-obj PRIVATE ${ns_libraries_to_link}
)
endif()

# set output name of library
Expand Down

0 comments on commit 6b928cd

Please sign in to comment.