Skip to content

Commit a33339e

Browse files
build: add FreeBSD specific include/link dirs for FreeBSD
1 parent 640aee9 commit a33339e

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,5 +99,5 @@ jobs:
9999
gitup
100100
101101
run: |
102-
cmake -GNinja -B build -DCMAKE_C_FLAGS="-I/usr/local/include -L/usr/local/lib" -DCMAKE_CXX_FLAGS="-I/usr/local/include -L/usr/local/lib"
102+
cmake -GNinja -B build
103103
cmake --build build

CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,12 @@ add_compile_options(-Wall -Wextra -Wno-vla-cxx-extension)
8686
# pipewire defines this, breaking PCH
8787
add_compile_definitions(_REENTRANT)
8888

89+
# FreeBSD specific include/link dirs
90+
if (CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
91+
include_directories(/usr/local/include)
92+
link_directories(/usr/local/lib)
93+
endif()
94+
8995
if (FRAME_POINTERS)
9096
add_compile_options(-fno-omit-frame-pointer)
9197
endif()

0 commit comments

Comments
 (0)