summarylogtreecommitdiffstats
path: root/0005-Build-shared-instead-of-static-library.patch
blob: b18ced16530747e89db3517f8ba07ebab28acf6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From 6b16b1f2e3a5ffa242faab5c83b68f1c795586cc Mon Sep 17 00:00:00 2001
From: Xiretza <xiretza@xiretza.xyz>
Date: Sun, 5 Dec 2021 20:52:12 +0100
Subject: [PATCH 5/5] Build shared instead of static library

---
 CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 444e9e17e..976163168 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -375,7 +375,7 @@ endforeach()
 
 find_package(antlr4-runtime REQUIRED)
 
-add_library(surelog STATIC ${surelog_SRC} ${surelog_generated_SRC})
+add_library(surelog SHARED ${surelog_SRC} ${surelog_generated_SRC})
 set_target_properties(surelog PROPERTIES PUBLIC_HEADER include/Surelog/surelog.h)
 target_include_directories(surelog PRIVATE ${ANTLR4_INCLUDE_DIR})
 target_include_directories(surelog PUBLIC $<INSTALL_INTERFACE:include>)
-- 
2.36.1