Skip to content

Commit

Permalink
[CMake,DEB,RPM] Remove CppUnit code from build system
Browse files Browse the repository at this point in the history
  • Loading branch information
amadio committed Mar 8, 2024
1 parent 6680aa3 commit 71c9abf
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 41 deletions.
30 changes: 0 additions & 30 deletions cmake/FindCppUnit.cmake

This file was deleted.

4 changes: 1 addition & 3 deletions cmake/XRootDFindLibs.cmake
Expand Up @@ -72,13 +72,11 @@ endif()

if( ENABLE_TESTS )
if( FORCE_ENABLED )
find_package( CppUnit REQUIRED )
find_package( GTest REQUIRED )
else()
find_package( CppUnit )
find_package( GTest )
endif()
if( CPPUNIT_FOUND AND GTEST_FOUND )
if( GTEST_FOUND )
set( BUILD_TESTS TRUE )
else()
set( BUILD_TESTS FALSE )
Expand Down
2 changes: 1 addition & 1 deletion cmake/XRootDSummary.cmake
Expand Up @@ -10,7 +10,7 @@ component_status( MACAROONS BUILD_MACAROONS MACAROONS_FOUND AND JSON_FOUND AND
component_status( PYTHON BUILD_PYTHON Python_Interpreter_FOUND AND Python_Development_FOUND )
component_status( READLINE ENABLE_READLINE READLINE_FOUND )
component_status( SCITOKENS BUILD_SCITOKENS SCITOKENSCPP_FOUND )
component_status( TESTS BUILD_TESTS CPPUNIT_FOUND AND GTEST_FOUND )
component_status( TESTS BUILD_TESTS GTEST_FOUND )
component_status( TPC BUILD_TPC CURL_FOUND )
component_status( VOMSXRD BUILD_VOMS VOMS_FOUND )
component_status( XRDCL ENABLE_XRDCL TRUE_VAR )
Expand Down
1 change: 0 additions & 1 deletion debian/control
Expand Up @@ -8,7 +8,6 @@ Build-Depends:
attr,
cmake,
libgtest-dev,
libcppunit-dev,
libisal-dev,
pkg-config,
libfuse-dev [linux-any kfreebsd-any],
Expand Down
6 changes: 0 additions & 6 deletions xrootd.spec
Expand Up @@ -47,11 +47,6 @@ Source1: %{url}/download/v%{compat_version}/%{name}-%{compat_version}.tar.gz
%undefine __cmake3_in_source_build
%endif

%if %{with tests}
# CppUnit crashes with LTO enabled
%global _lto_cflags %nil
%endif

%if %{?rhel}%{!?rhel:0} == 7
BuildRequires: cmake3
BuildRequires: %{devtoolset}-toolchain
Expand Down Expand Up @@ -134,7 +129,6 @@ BuildRequires: openssl-devel

%if %{with tests}
BuildRequires: attr
BuildRequires: cppunit-devel
BuildRequires: gtest-devel
BuildRequires: openssl
%endif
Expand Down

0 comments on commit 71c9abf

Please sign in to comment.