This is an automated email from the ASF dual-hosted git repository.
lordgamez pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi-minifi-cpp.git
The following commit(s) were added to refs/heads/main by this push:
new 3ee72aad2 MINIFICPP-2945 Remove unnecessary fmt 11 dependency (#2300)
3ee72aad2 is described below
commit 3ee72aad21f7cba4420bbc15ba7578e821215d24
Author: Gabor Gyimesi <[email protected]>
AuthorDate: Wed Nov 11 10:44:02 2026 +0100
MINIFICPP-2945 Remove unnecessary fmt 11 dependency (#2300)
---
cmake/GetFmt_11_0_2.cmake | 24 ------------------------
cmake/GetSpdlog.cmake | 6 +-----
cmake/fmt_11_0_2.cmake | 27 ---------------------------
3 files changed, 1 insertion(+), 56 deletions(-)
diff --git a/cmake/GetFmt_11_0_2.cmake b/cmake/GetFmt_11_0_2.cmake
deleted file mode 100644
index e3ab8a3b5..000000000
--- a/cmake/GetFmt_11_0_2.cmake
+++ /dev/null
@@ -1,24 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-if(MINIFI_FMT_SOURCE STREQUAL "CONAN")
- message("Using Conan to install Fmt")
- find_package(fmt REQUIRED)
-elseif(MINIFI_FMT_SOURCE STREQUAL "BUILD")
- message("Using CMake to build Fmt from source (version 11.0.2)")
- include(fmt_11_0_2)
-endif()
diff --git a/cmake/GetSpdlog.cmake b/cmake/GetSpdlog.cmake
index 3097b41ed..71c900a7b 100644
--- a/cmake/GetSpdlog.cmake
+++ b/cmake/GetSpdlog.cmake
@@ -15,11 +15,7 @@
# specific language governing permissions and limitations
# under the License.
-if (WIN32)
- include(GetFmt_11_0_2)
-else()
- include(GetFmt)
-endif()
+include(GetFmt)
if(MINIFI_SPDLOG_SOURCE STREQUAL "CONAN")
message("Using Conan to install spdlog")
diff --git a/cmake/fmt_11_0_2.cmake b/cmake/fmt_11_0_2.cmake
deleted file mode 100644
index dfe9dcea1..000000000
--- a/cmake/fmt_11_0_2.cmake
+++ /dev/null
@@ -1,27 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-include(FetchContent)
-
-FetchContent_Declare(Fmt
- URL https://github.com/fmtlib/fmt/archive/refs/tags/11.0.2.tar.gz
- URL_HASH
SHA256=6cb1e6d37bdcb756dbbe59be438790db409cdb4868c66e888d5df9f13f7c027f
- OVERRIDE_FIND_PACKAGE
- SYSTEM
- )
-FetchContent_MakeAvailable(Fmt)