]> git.lizzy.rs Git - dragonfireclient.git/commitdiff
Declare all bundled libs as static
authorsfan5 <sfan5@live.de>
Fri, 6 May 2022 12:42:56 +0000 (14:42 +0200)
committersfan5 <sfan5@live.de>
Fri, 6 May 2022 13:16:04 +0000 (15:16 +0200)
Otherwise it can happen that these are built as shared depending on the
options passed to CMake, which obviously isn't intended.

lib/bitop/CMakeLists.txt
lib/gmp/CMakeLists.txt
lib/jsoncpp/CMakeLists.txt

index 03b4d0b96a7bf94e12a36ad0f103c99722fb2128..02e8a421d8a11458c3366fabb72631ff486453db 100644 (file)
@@ -1,4 +1,4 @@
-add_library(bitop bit.c)
+add_library(bitop STATIC bit.c)
 target_link_libraries(bitop)
 
 include_directories(${LUA_INCLUDE_DIR})
index 884c4d3895ae64dee5e0e368bb17bd80062ab577..f0604a43df39e218514e634279fee64c3d64fac9 100644 (file)
@@ -1,3 +1,3 @@
-add_library(gmp mini-gmp.c)
+add_library(gmp STATIC mini-gmp.c)
 target_link_libraries(gmp)
 
index 0531712aecee032b54c2f86545b556c8f911905d..cdd1a7ead5983e02846837e633da5494e56367e4 100644 (file)
@@ -1,3 +1,3 @@
-add_library(jsoncpp jsoncpp.cpp)
+add_library(jsoncpp STATIC jsoncpp.cpp)
 target_link_libraries(jsoncpp)