Skip to content

Commit

Permalink
Second attempt to fix build on Alpine Linux. issues 150, 319, 344.
Browse files Browse the repository at this point in the history
  • Loading branch information
wb2osz committed Sep 25, 2023
1 parent 3c73a6b commit ab834f3
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions external/misc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,22 @@ if(LINUX)
)
endif()

add_library(misc STATIC
${misc_SOURCES}
)
# Add_library doesn't like to get an empty source file list.
# I tried several variations on this theme to test whether the list
# was not empty and was not successful in getting it to work
# on both Alpine and RPi.
#if("${misc_SOURCES}")
# This is less elegant and less maintainable but it works.

if ((NOT HAVE_STRLCPY) OR (NOT HAVE_STRLCAT))
add_library(misc STATIC
${misc_SOURCES}
)
else()
set(MISC_LIBRARIES "" CACHE INTERNAL "")
endif()



elseif(WIN32 OR CYGWIN) # windows

Expand Down

0 comments on commit ab834f3

Please sign in to comment.