diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt index cbb0df9..0c76769 100644 --- a/source/CMakeLists.txt +++ b/source/CMakeLists.txt @@ -122,9 +122,11 @@ set( all_files loader/test.c ${PLAT_SOURCES} ) - -add_library( zmusic SHARED ${all_files} ) -add_library( zmusiclite SHARED ${all_files} ) + +option( BUILD_SHARED_LIBS "Build shared libraries" ON ) + +add_library( zmusic ${all_files} ) +add_library( zmusiclite ${all_files} ) target_compile_definitions(zmusiclite PRIVATE ZMUSIC_LITE=1) if( MSVC ) diff --git a/thirdparty/game-music-emu/CMakeLists.txt b/thirdparty/game-music-emu/CMakeLists.txt index bc52e17..0580200 100644 --- a/thirdparty/game-music-emu/CMakeLists.txt +++ b/thirdparty/game-music-emu/CMakeLists.txt @@ -86,8 +86,6 @@ use_fast_math() SET(USE_GME_NSF 1 CACHE BOOL "Enable NES NSF music emulation" FORCE) #endif() -# [ZDoom] Set always to OFF. -set(BUILD_SHARED_LIBS OFF) set(ENABLE_UBSAN OFF) # Check for GCC/Clang "visibility" support. diff --git a/thirdparty/zlib/CMakeLists.txt b/thirdparty/zlib/CMakeLists.txt index a1d6637..4e30d18 100644 --- a/thirdparty/zlib/CMakeLists.txt +++ b/thirdparty/zlib/CMakeLists.txt @@ -7,10 +7,6 @@ project(zlib C) set(VERSION "1.2.7") -if(NOT DEFINED BUILD_SHARED_LIBS) - option(BUILD_SHARED_LIBS "Build a shared library form of zlib" OFF) -endif() - set(ZLIBNAME z) include(CheckTypeSize)