From 567fa7bd57de4f65d4e56bf2b69c9512298d681a Mon Sep 17 00:00:00 2001 From: casey langen Date: Fri, 14 Apr 2023 23:04:35 -0700 Subject: [PATCH] Fix BSD include/lib paths. --- .cmake/ConfigureBsdPaths.cmake | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.cmake/ConfigureBsdPaths.cmake b/.cmake/ConfigureBsdPaths.cmake index 362ad5088..34e7ba878 100644 --- a/.cmake/ConfigureBsdPaths.cmake +++ b/.cmake/ConfigureBsdPaths.cmake @@ -7,6 +7,9 @@ if (CMAKE_SYSTEM_NAME MATCHES "Darwin" OR CMAKE_SYSTEM_NAME MATCHES "FreeBSD" OR COMMAND awk "{print $2}" OUTPUT_STRIP_TRAILING_WHITESPACE OUTPUT_VARIABLE BSD_PATH_PREFIX) + else() + include_directories("${BSD_PATH_PREFIX}/include") + link_directories("${BSD_PATH_PREFIX}/lib") endif() message(STATUS "[configure-bsd-paths] resolved BSD_PATH_PREFIX to: '${BSD_PATH_PREFIX}'") @@ -24,4 +27,4 @@ if (CMAKE_SYSTEM_NAME MATCHES "Darwin" OR CMAKE_SYSTEM_NAME MATCHES "FreeBSD" OR "${BSD_PATH_PREFIX}/lib" "${BSD_PATH_PREFIX}/opt/openssl/lib" "${BSD_PATH_PREFIX}/opt/ncurses/lib") -endif () \ No newline at end of file +endif()