From 7d46a3851304bab7e917b506c634519dc2f85b65 Mon Sep 17 00:00:00 2001 From: Gabriel Ferreira Date: Thu, 4 Jan 2024 23:19:04 +0100 Subject: [PATCH] build: silence MacOS warning in case of nonexistent library directory --- build-support/custom-modules/ns3-output-directory.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-support/custom-modules/ns3-output-directory.cmake b/build-support/custom-modules/ns3-output-directory.cmake index 7d25e1726ed..1514b227ae9 100644 --- a/build-support/custom-modules/ns3-output-directory.cmake +++ b/build-support/custom-modules/ns3-output-directory.cmake @@ -78,5 +78,5 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_OUTPUT_DIRECTORY}) set(CMAKE_HEADER_OUTPUT_DIRECTORY ${CMAKE_OUTPUT_DIRECTORY}/include/ns3) set(THIRD_PARTY_DIRECTORY ${PROJECT_SOURCE_DIR}/3rd-party) set(CMAKE_EXPORT_COMPILE_COMMANDS ON) -link_directories(${CMAKE_OUTPUT_DIRECTORY}/lib ${CMAKE_OUTPUT_DIRECTORY}/lib64) +link_directories(${CMAKE_OUTPUT_DIRECTORY}/${libdir}) file(MAKE_DIRECTORY ${CMAKE_OUTPUT_DIRECTORY})