Skip to content

Commit

Permalink
Fixup build for Alpine (#1890)
Browse files Browse the repository at this point in the history
  • Loading branch information
DownerCase authored and Peguen committed Jan 14, 2025
1 parent 476f50c commit cf16a6d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
6 changes: 4 additions & 2 deletions ecal/core/src/ecal_process_stub.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* ========================= eCAL LICENSE =================================
*
* Copyright (C) 2016 - 2019 Continental Corporation
* Copyright (C) 2016 - 2025 Continental Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -17,10 +17,12 @@
* ========================= eCAL LICENSE =================================
*/

#include <errno.h>
#include <fcntl.h>
#include <string>
#include <sys/file.h>
#include <sys/stat.h>
#include <unistd.h>
#include <errno.h>

#include <string.h>
#include <iostream>
Expand Down
11 changes: 10 additions & 1 deletion lib/ecal_utils/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ========================= eCAL LICENSE =================================
#
# Copyright (C) 2016 - 2019 Continental Corporation
# Copyright (C) 2016 - 2025 Continental Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -51,6 +51,15 @@ target_include_directories(${PROJECT_NAME} PUBLIC

target_compile_features(${PROJECT_NAME} PUBLIC cxx_std_14)

# filesystem.cpp uses fts on Linux, some distibutions (i.e: Alpine) have fts as a
# separate library
if(LINUX)
find_library(libfts NAMES fts)
if(NOT "${libfts}" STREQUAL "libfts-NOTFOUND")
target_link_libraries(${PROJECT_NAME} PRIVATE "${libfts}")
endif()
endif()

# Create a source tree that mirrors the filesystem
source_group(TREE "${CMAKE_CURRENT_LIST_DIR}"
FILES
Expand Down

0 comments on commit cf16a6d

Please sign in to comment.