From 33b7f656ab40f87d6d09f220af2f694f10e7d6db Mon Sep 17 00:00:00 2001 From: David CARLIER Date: Mon, 25 Nov 2024 08:29:09 +0000 Subject: [PATCH] neasing netbsd build. (#696) all 3rd party packages are located in /usr/pkg so we lessen the burden to set these. --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 865127c..2948e56 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -210,6 +210,11 @@ if(MSVC) target_compile_options(snmalloc INTERFACE "/Zc:__cplusplus") endif() +if (CMAKE_SYSTEM_NAME STREQUAL NetBSD) + target_include_directories(snmalloc INTERFACE /usr/pkg/include) + target_link_directories(snmalloc INTERFACE /usr/pkg/lib) +endif() + # Add header paths. target_include_directories(snmalloc INTERFACE