Skip to content

Commit

Permalink
build(cmake): do not static build in macos
Browse files Browse the repository at this point in the history
  • Loading branch information
JaDogg committed Apr 13, 2024
1 parent c3630fa commit 328f28d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions compiler/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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)
Expand Down

0 comments on commit 328f28d

Please sign in to comment.