]> granicus.if.org Git - libmatroska/commitdiff
allow selecting the DLL vs static library build more
authorSteve Lhomme <slhomme@matroska.org>
Sun, 2 Oct 2022 07:34:25 +0000 (09:34 +0200)
committerSteve Lhomme <robux4@ycbcr.xyz>
Tue, 4 Oct 2022 12:58:20 +0000 (14:58 +0200)
This is often done in CMake projects to show the option to the user.

CMakeLists.txt

index 318da552ea183a576e09c78a716a909f2bf225d4..cc21f0d660b9eb355e32fe90826eb8c4eaaf5e99 100644 (file)
@@ -4,6 +4,7 @@ project(matroska VERSION 1.8.0)
 
 option(DISABLE_PKGCONFIG "Disable PkgConfig module generation" OFF)
 option(DISABLE_CMAKE_CONFIG "Disable CMake package config module generation" OFF)
+option(BUILD_SHARED_LIBS "Build libmatroska as a shared library" OFF)
 
 find_package(EBML 1.4.3 REQUIRED)