From d77e2aee0bf9e1a7bd909fbea79769920e3ac1d9 Mon Sep 17 00:00:00 2001 From: Andreas Sturmlechner Date: Mon, 15 Feb 2021 23:44:11 +0100 Subject: [PATCH] Just set CMAKE_MODULE_PATH instead of list(APPEND), drop ENABLE_STATIC err ENABLE_STATIC error has been there since 2014, that is long enough. Signed-off-by: Andreas Sturmlechner --- CMakeLists.txt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0370bd05..f5b1c479 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,16 +2,12 @@ cmake_minimum_required(VERSION 3.0.0 FATAL_ERROR) project(taglib) -list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules") +set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules") include(CTest) include(FeatureSummary) include(GNUInstallDirs) -if(DEFINED ENABLE_STATIC) - message(FATAL_ERROR "This option is no longer available, use BUILD_SHARED_LIBS instead") -endif() - option(BUILD_SHARED_LIBS "Build shared libraries" OFF) if(APPLE) option(BUILD_FRAMEWORK "Build an OS X framework" OFF)