Skip to content

Commit

Permalink
neasing netbsd build. (#696)
Browse files Browse the repository at this point in the history
all 3rd party packages are located in /usr/pkg so we lessen the burden
to set these.
  • Loading branch information
devnexen authored Nov 25, 2024
1 parent 69e280c commit 33b7f65
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 33b7f65

Please sign in to comment.