Skip to content

Commit

Permalink
build: Avoid include_directories when NS3_FORCE_LOCAL_DEPENDENCIES is…
Browse files Browse the repository at this point in the history
… set
  • Loading branch information
Gabrielcarvfer committed Jan 22, 2025
1 parent cfafb55 commit 83000d9
Showing 1 changed file with 21 additions and 7 deletions.
28 changes: 21 additions & 7 deletions build-support/macros-and-definitions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,9 @@ macro(process_options)
if(${SQLite3_FOUND})
set(ENABLE_SQLITE True)
add_definitions(-DHAVE_SQLITE3)
include_directories(${SQLite3_INCLUDE_DIRS})
if(NOT ${NS3_FORCE_LOCAL_DEPENDENCIES})
include_directories(${SQLite3_INCLUDE_DIRS})
endif()
endif()
endif()

Expand All @@ -560,7 +562,9 @@ macro(process_options)

add_definitions(-DHAVE_EIGEN3)
add_definitions(-DEIGEN_MPL2_ONLY)
include_directories(${EIGEN3_INCLUDE_DIR})
if(NOT ${NS3_FORCE_LOCAL_DEPENDENCIES})
include_directories(${EIGEN3_INCLUDE_DIR})
endif()
else()
set(ENABLE_EIGEN_REASON "Eigen was not found")
endif()
Expand Down Expand Up @@ -588,7 +592,9 @@ macro(process_options)
"GTK3 found with incompatible version ${GTK3_VERSION}"
)
else()
include_directories(${GTK3_INCLUDE_DIRS} ${HarfBuzz_INCLUDE_DIRS})
if(NOT ${NS3_FORCE_LOCAL_DEPENDENCIES})
include_directories(${GTK3_INCLUDE_DIRS} ${HarfBuzz_INCLUDE_DIRS})
endif()
endif()
endif()

Expand All @@ -615,7 +621,9 @@ macro(process_options)
set(LIBXML2_FOUND_REASON "LibXML2 was not found")
else()
add_definitions(-DHAVE_LIBXML2)
include_directories(${LIBXML2_INCLUDE_DIR})
if(NOT ${NS3_FORCE_LOCAL_DEPENDENCIES})
include_directories(${LIBXML2_INCLUDE_DIR})
endif()
endif()
endif()

Expand Down Expand Up @@ -662,7 +670,9 @@ macro(process_options)
set(CMAKE_INSTALL_RPATH "${DEVELOPER_DIR}" CACHE STRING "")
endif()
endif()
include_directories(${Python3_INCLUDE_DIRS})
if(NOT ${NS3_FORCE_LOCAL_DEPENDENCIES})
include_directories(${Python3_INCLUDE_DIRS})
endif()
else()
message(${HIGHLIGHTED_STATUS}
"Python: development libraries were not found"
Expand Down Expand Up @@ -847,7 +857,9 @@ macro(process_options)
mark_as_advanced(Boost_INCLUDE_DIR)
find_package(Boost)
if(${Boost_FOUND})
include_directories(${Boost_INCLUDE_DIRS})
if(NOT ${NS3_FORCE_LOCAL_DEPENDENCIES})
include_directories(${Boost_INCLUDE_DIRS})
endif()
set(CMAKE_REQUIRED_INCLUDES ${Boost_INCLUDE_DIRS})
endif()

Expand All @@ -859,7 +871,9 @@ macro(process_options)
else()
message(STATUS "GSL was found.")
add_definitions(-DHAVE_GSL)
include_directories(${GSL_INCLUDE_DIRS})
if(NOT ${NS3_FORCE_LOCAL_DEPENDENCIES})
include_directories(${GSL_INCLUDE_DIRS})
endif()
endif()
endif()

Expand Down

0 comments on commit 83000d9

Please sign in to comment.