Skip to content

Commit

Permalink
Merge pull request #520 from bbockelm/explicit_build_ceph
Browse files Browse the repository at this point in the history
Disable Ceph build unless enabled.
  • Loading branch information
simonmichal committed May 30, 2017
2 parents e2d44ff + 6c0a6ef commit 390d1bf
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions packaging/rhel/xrootd.spec.in
Expand Up @@ -366,11 +366,18 @@ export CXX=clang++

mkdir build
pushd build
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RelWithDebInfo \
%if %{?_with_tests:1}%{!?_with_tests:0}
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RelWithDebInfo -DENABLE_TESTS=TRUE -DUSE_LIBC_SEMAPHORE=%{use_libc_semaphore} ../
-DENABLE_TESTS=TRUE \
%else
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RelWithDebInfo -DUSE_LIBC_SEMAPHORE=%{use_libc_semaphore} ../
-DENABLE_TESTS=FALSE \
%endif
%if %{?_with_ceph:1}%{!?_with_ceph:0}
-DENABLE_CEPH=TRUE \
%else
-DENABLE_CEPH=FALSE \
%endif
-DUSE_LIBC_SEMAPHORE=%{use_libc_semaphore} ../

make -i VERBOSE=1 %{?_smp_mflags}
popd
Expand Down

0 comments on commit 390d1bf

Please sign in to comment.