From a7de0b8706becf1fe068b934005d17546d35e05a Mon Sep 17 00:00:00 2001 From: Josh Cooper Date: Sun, 14 Nov 2021 12:27:13 -0800 Subject: [PATCH] Fixes cmake config errors/warnings --- CMakeLists.txt | 3 ++- cmake/FindGumbo.cmake | 5 ----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7df494e..27d81a6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,6 @@ project(gumbo_query CXX) -cmake_minimum_required(VERSION 3.2 FATAL_ERROR) +cmake_minimum_required(VERSION 3.21 FATAL_ERROR) +cmake_policy(SET CMP0110 NEW) include(CTest) include(cmake/PreventInSourceBuilds.cmake) diff --git a/cmake/FindGumbo.cmake b/cmake/FindGumbo.cmake index e18fa01..4554239 100644 --- a/cmake/FindGumbo.cmake +++ b/cmake/FindGumbo.cmake @@ -27,11 +27,6 @@ find_library(Gumbo_LIBRARY PATHS ${Gumbo_PKGCONF_LIBRARY_DIRS} ) -find_library(Gumbo_static_LIBRARY - NAMES libgumbo.a libgumbo_static.a gumbo.a gumbo_static.a libgumbo.lib libgumbo_static.lib gumbo.lib gumbo_static.lib - PATHS ${Gumbo_PKGCONF_LIBRARY_DIRS} -) - # Set the include dir variables and the libraries and let libfind_process do the rest. # NOTE: Singular variables for this library, plural for libraries this this lib depends on. set(Gumbo_PROCESS_INCLUDES Gumbo_INCLUDE_DIR)