diff options
author | sfan5 <sfan5@live.de> | 2022-05-06 14:42:56 +0200 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2022-05-14 18:33:42 +0200 |
commit | e81c48526b042666f08bb25d8b3f14007763c3f4 (patch) | |
tree | 30f523cf12f4c9f8e7690420c50765b8b0243471 /lib | |
parent | b405985b807399d303933c004511e7bb9e5a540a (diff) | |
download | minetest-e81c48526b042666f08bb25d8b3f14007763c3f4.tar.gz minetest-e81c48526b042666f08bb25d8b3f14007763c3f4.tar.bz2 minetest-e81c48526b042666f08bb25d8b3f14007763c3f4.zip |
Declare all bundled libs as static
Otherwise it can happen that these are built as shared depending on the
options passed to CMake, which obviously isn't intended.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bitop/CMakeLists.txt | 2 | ||||
-rw-r--r-- | lib/gmp/CMakeLists.txt | 2 | ||||
-rw-r--r-- | lib/jsoncpp/CMakeLists.txt | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/bitop/CMakeLists.txt b/lib/bitop/CMakeLists.txt index 03b4d0b96..02e8a421d 100644 --- a/lib/bitop/CMakeLists.txt +++ b/lib/bitop/CMakeLists.txt @@ -1,4 +1,4 @@ -add_library(bitop bit.c) +add_library(bitop STATIC bit.c) target_link_libraries(bitop) include_directories(${LUA_INCLUDE_DIR}) diff --git a/lib/gmp/CMakeLists.txt b/lib/gmp/CMakeLists.txt index 884c4d389..f0604a43d 100644 --- a/lib/gmp/CMakeLists.txt +++ b/lib/gmp/CMakeLists.txt @@ -1,3 +1,3 @@ -add_library(gmp mini-gmp.c) +add_library(gmp STATIC mini-gmp.c) target_link_libraries(gmp) diff --git a/lib/jsoncpp/CMakeLists.txt b/lib/jsoncpp/CMakeLists.txt index 0531712ae..cdd1a7ead 100644 --- a/lib/jsoncpp/CMakeLists.txt +++ b/lib/jsoncpp/CMakeLists.txt @@ -1,3 +1,3 @@ -add_library(jsoncpp jsoncpp.cpp) +add_library(jsoncpp STATIC jsoncpp.cpp) target_link_libraries(jsoncpp) |