Skip to content

Commit

Permalink
build: on macOS link to Foundation and IOKit frameworks
Browse files Browse the repository at this point in the history
Signed-off-by: Eduardo Silva <[email protected]>
  • Loading branch information
edsiper committed Jun 10, 2024
1 parent 40935fa commit 65d9d26
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,13 @@ if(CMAKE_SYSTEM_NAME MATCHES "Linux")
)
endif()

if(FLB_SYSTEM_MACOS)
set(FLB_DEPS
${FLB_DEPS}
"-framework Foundation"
"-framework IOKit"
)
endif()

# Record Accessor
# ---------------
Expand Down Expand Up @@ -524,7 +531,7 @@ if(FLB_BINARY)
if(NOT SYSTEMD_UNITDIR AND IS_DIRECTORY /lib/systemd/system)
set(SYSTEMD_UNITDIR /lib/systemd/system)
endif()

if(SYSTEMD_UNITDIR)
set(FLB_SYSTEMD_SCRIPT "${PROJECT_SOURCE_DIR}/init/${FLB_OUT_NAME}.service")
configure_file(
Expand Down

0 comments on commit 65d9d26

Please sign in to comment.