From 7fe4c63cb38e10f0dcfe2ee378299efcb4417660 Mon Sep 17 00:00:00 2001 From: Cacodemon345 Date: Mon, 30 Aug 2021 00:00:27 +0600 Subject: [PATCH] Enable static linking only on Windows --- src/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index a13564310..1ba30edb4 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -70,7 +70,7 @@ if(ARCH STREQUAL "i386") endif() endif() -if(NOT MSVC) +if(NOT MSVC AND NOT UNIX AND NOT APPLE) target_link_options(86Box PRIVATE "-static") endif()