summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Matuška <martin@matuska.org>2022-12-06 09:58:24 +0100
committerGitHub <noreply@github.com>2022-12-06 09:58:24 +0100
commit6bea1a69c970a94f5332f89692ac8168c2400342 (patch)
tree285be7e69532ae59bb78f52841479086f924d60a
parenta8b00bf148fc73f2e46d9dd86dfe67620ff12ec8 (diff)
parent92f183af49740154f33688695b254832ec50a561 (diff)
downloadlibarchive-6bea1a69c970a94f5332f89692ac8168c2400342.tar.gz
Merge pull request #1793 from flyingdutchman23/fix-cmake-warning
Fix CMake warning
-rw-r--r--CMakeLists.txt7
-rw-r--r--build/cmake/FindLIBGCC.cmake (renamed from build/cmake/FindLibGCC.cmake)0
2 files changed, 4 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e3bb6591..1130b8c0 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -213,7 +213,7 @@ OPTION(ENABLE_BZip2 "Enable the use of the system BZip2 library if found" ON)
OPTION(ENABLE_LIBXML2 "Enable the use of the system libxml2 library if found" ON)
OPTION(ENABLE_EXPAT "Enable the use of the system EXPAT library if found" ON)
OPTION(ENABLE_PCREPOSIX "Enable the use of the system PCREPOSIX library if found" ON)
-OPTION(ENABLE_LibGCC "Enable the use of the system LibGCC library if found" ON)
+OPTION(ENABLE_LIBGCC "Enable the use of the system LibGCC library if found" ON)
# CNG is used for encrypt/decrypt Zip archives on Windows.
OPTION(ENABLE_CNG "Enable the use of CNG(Crypto Next Generation)" ON)
@@ -1264,9 +1264,10 @@ IF(NOT FOUND_POSIX_REGEX_LIB AND POSIX_REGEX_LIB MATCHES "^(AUTO|LIBPCREPOSIX)$"
#
# If requested, try finding library for PCREPOSIX
#
- IF(ENABLE_LibGCC)
- FIND_PACKAGE(LibGCC)
+ IF(ENABLE_LIBGCC)
+ FIND_PACKAGE(LIBGCC)
ELSE()
+ MESSAGE(FATAL_ERROR "libgcc not found.")
SET(LIBGCC_FOUND FALSE) # Override cached value
ENDIF()
IF(ENABLE_PCREPOSIX)
diff --git a/build/cmake/FindLibGCC.cmake b/build/cmake/FindLIBGCC.cmake
index 5883ff80..5883ff80 100644
--- a/build/cmake/FindLibGCC.cmake
+++ b/build/cmake/FindLIBGCC.cmake