Fix condition for avoiding `-static` flag

There's no `LINUX`; I suppose `UNIX` is specific enough as well.
This commit is contained in:
Martchus 2022-04-05 22:10:16 +02:00
parent 910432df4c
commit c1e93738b6
1 changed files with 1 additions and 1 deletions

View File

@ -442,7 +442,7 @@ if ((STATIC_LINKAGE AND META_PROJECT_IS_APPLICATION) OR (STATIC_LIBRARY_LINKAGE
# add options to opt out from linking statically against certain core libraries as it might not work under all platforms
# (see https://github.com/Martchus/syncthingtray/issues/64)
if (APPLE OR LINUX)
if (APPLE OR UNIX)
set(DEFAUT_NO_STATIC_ENFORCE ON)
# note: The -static flag is considered completely unsupported under Apple platforms (see
# https://stackoverflow.com/questions/844819/how-to-static-link-on-os-x) and generally not a good idea to use under