refactor(build): link nbt++ statically

This commit is contained in:
Sefa Eyeoglu 2022-02-07 15:44:46 +01:00
parent 11f892380e
commit f67871e79e
No known key found for this signature in database
GPG Key ID: C10411294912A422
2 changed files with 2 additions and 4 deletions

View File

@ -260,11 +260,9 @@ endif()
include(ExternalProject) include(ExternalProject)
set_directory_properties(PROPERTIES EP_BASE External) set_directory_properties(PROPERTIES EP_BASE External)
option(NBT_BUILD_SHARED "Build NBT shared library" ON) option(NBT_BUILD_SHARED "Build NBT shared library" OFF)
option(NBT_USE_ZLIB "Build NBT library with zlib support" OFF) option(NBT_USE_ZLIB "Build NBT library with zlib support" OFF)
option(NBT_BUILD_TESTS "Build NBT library tests" OFF) #FIXME: fix unit tests. option(NBT_BUILD_TESTS "Build NBT library tests" OFF) #FIXME: fix unit tests.
set(NBT_NAME Launcher_nbt++)
set(NBT_DEST_DIR ${LIBRARY_DEST_DIR})
add_subdirectory(libraries/libnbtplusplus) add_subdirectory(libraries/libnbtplusplus)
add_subdirectory(libraries/systeminfo) # system information library add_subdirectory(libraries/systeminfo) # system information library

View File

@ -941,7 +941,7 @@ add_library(Launcher_logic STATIC ${LOGIC_SOURCES} ${LAUNCHER_SOURCES} ${LAUNCHE
target_link_libraries(Launcher_logic target_link_libraries(Launcher_logic
systeminfo systeminfo
Launcher_classparser Launcher_classparser
${NBT_NAME} nbt++
${ZLIB_LIBRARIES} ${ZLIB_LIBRARIES}
optional-bare optional-bare
tomlc99 tomlc99