From c1e93738b686b92d5e99f9a8abc48044a8cb55bc Mon Sep 17 00:00:00 2001 From: Martchus Date: Tue, 5 Apr 2022 22:10:16 +0200 Subject: [PATCH] Fix condition for avoiding `-static` flag There's no `LINUX`; I suppose `UNIX` is specific enough as well. --- cmake/modules/3rdParty.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/modules/3rdParty.cmake b/cmake/modules/3rdParty.cmake index 6863afa..faf4e3b 100644 --- a/cmake/modules/3rdParty.cmake +++ b/cmake/modules/3rdParty.cmake @@ -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