From 328f28dcc0b0c53644bfdadca40494e078b4a51b Mon Sep 17 00:00:00 2001 From: JaDogg Date: Sat, 13 Apr 2024 05:03:51 +0100 Subject: [PATCH] build(cmake): do not static build in macos --- compiler/CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/compiler/CMakeLists.txt b/compiler/CMakeLists.txt index 4ae51124..c1f1b053 100644 --- a/compiler/CMakeLists.txt +++ b/compiler/CMakeLists.txt @@ -1,10 +1,10 @@ cmake_minimum_required(VERSION 3.5) project(Yaksha) -if(NOT DEFINED ENV{YAKSHA_NO_STATIC}) -set(CMAKE_FIND_LIBRARY_SUFFIXES ".a") -set(BUILD_SHARED_LIBS OFF) -set(CMAKE_EXE_LINKER_FLAGS "-static") +if(NOT APPLE) + set(CMAKE_FIND_LIBRARY_SUFFIXES ".a") + set(BUILD_SHARED_LIBS OFF) + set(CMAKE_EXE_LINKER_FLAGS "-static") endif() set(CMAKE_CXX_STANDARD 17)