Fix build on Alpine Linux. issues 150, 319, 344.

This commit is contained in:
wb2osz 2023-09-23 02:48:28 +01:00
parent ba0313ca78
commit 877d1c7707
1 changed files with 9 additions and 3 deletions

View File

@ -32,9 +32,15 @@ if(LINUX)
) )
endif() endif()
add_library(misc STATIC # add_library doesn't like to get an empty source file list.
${misc_SOURCES}
) if($misc_SOURCES)
add_library(misc STATIC
${misc_SOURCES}
)
else()
set(MISC_LIBRARIES "" CACHE INTERNAL "")
endif()
elseif(WIN32 OR CYGWIN) # windows elseif(WIN32 OR CYGWIN) # windows