From a55b277c68ec58fb7e7d007d4d99afdb410fe22b Mon Sep 17 00:00:00 2001 From: trixirt Date: Sun, 23 Oct 2022 11:46:13 -0700 Subject: [PATCH] Use shared gflags on Fedora (#13600) Static gflags is not available on Fedora, leading to a configure error. So use the shared version. Signed-off-by: Tom Rix Signed-off-by: Tom Rix --- thirdparty/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thirdparty/CMakeLists.txt b/thirdparty/CMakeLists.txt index 14323ce8a5b..e300360e2d8 100644 --- a/thirdparty/CMakeLists.txt +++ b/thirdparty/CMakeLists.txt @@ -185,7 +185,7 @@ if(NOT APPLE OR CPACK_GENERATOR MATCHES "^(BREW|CONDA-FORGE)$") # - on Apple only dynamic libraries are available # also, we can easily mix arm64 and x86_64 binaries when cross-compile for Intel CPU - if(CPACK_GENERATOR MATCHES "^(BREW|CONDA-FORGE)$" OR DEFINED ENV{HOMEBREW_PREFIX}) + if(CPACK_GENERATOR MATCHES "^(BREW|CONDA-FORGE)$" OR DEFINED ENV{HOMEBREW_PREFIX} OR LINUX_OS_NAME MATCHES "(Fedora)") # conda-forge and brew contains only shared version of gflags find_package(gflags QUIET COMPONENTS nothreads_shared) else()