From 03888b70826a29d84ae0596e166b12caf9741779 Mon Sep 17 00:00:00 2001 From: casey langen Date: Sat, 17 Jun 2023 12:33:32 -0700 Subject: [PATCH] Minor build tweaks for newer versions of CMake on macOS --- .cmake/ConfigureBsdPaths.cmake | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.cmake/ConfigureBsdPaths.cmake b/.cmake/ConfigureBsdPaths.cmake index 34e7ba878..04f6b06f7 100644 --- a/.cmake/ConfigureBsdPaths.cmake +++ b/.cmake/ConfigureBsdPaths.cmake @@ -14,6 +14,12 @@ if (CMAKE_SYSTEM_NAME MATCHES "Darwin" OR CMAKE_SYSTEM_NAME MATCHES "FreeBSD" OR message(STATUS "[configure-bsd-paths] resolved BSD_PATH_PREFIX to: '${BSD_PATH_PREFIX}'") + if (CMAKE_SYSTEM_NAME MATCHES "Darwin" AND NOT(${BUILD_STANDALONE} MATCHES "true")) + message(STATUS "[configure-bsd-paths] standalone *not* detected, adding Homebrew ${BSD_PATH_PREFIX} to include/lib dirs") + include_directories("${BSD_PATH_PREFIX}/include") + link_directories("${BSD_PATH_PREFIX}/lib") + endif() + list( APPEND VENDOR_INCLUDE_DIRECTORIES