From 0ce345c44ad1852f29db12c1eb65a429038b2809 Mon Sep 17 00:00:00 2001 From: Martin Date: Sun, 6 Feb 2022 14:30:35 +0100 Subject: [PATCH] Disable building shared lib by default --- .gitignore | 3 +++ CMakeLists.txt | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..dd19d69 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +/_build +/amalgamation +/bin diff --git a/CMakeLists.txt b/CMakeLists.txt index 6996492..9d36091 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -41,7 +41,7 @@ option(BUILD_EXAMPLES "Build examples" ${MINIZ_STANDALONE_PROJECT}) option(BUILD_FUZZERS "Build fuzz targets" OFF) option(AMALGAMATE_SOURCES "Amalgamate sources into miniz.h/c" OFF) option(BUILD_HEADER_ONLY "Build a header-only version" OFF) -option(BUILD_SHARED_LIBS "Build shared library instead of static" ON) +option(BUILD_SHARED_LIBS "Build shared library instead of static" OFF) option(INSTALL_PROJECT "Install project" ${MINIZ_STANDALONE_PROJECT}) set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/bin)