]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cmake: fix libcephfs-test.jar build failure 20175/head
authorTone Zhang <tone.zhang@arm.com>
Tue, 30 Jan 2018 00:55:38 +0000 (00:55 +0000)
committerTone Zhang <tone.zhang@arm.com>
Tue, 30 Jan 2018 02:07:12 +0000 (02:07 +0000)
commit108ac2ca1ca88af272842fc25a8d412d2607194c
treec388a9e06b19fe9f272393f89e81d122df18461a
parent0d4a71ed233741ad268c0953babaa85f40046ece
cmake: fix libcephfs-test.jar build failure

When building Ceph Debian installation package, libcephfs-test.jar
build would fail if multi junit versions are installed on the host.

In src/java/CMakeLists.txt, the "junit" search order is "junit"
and then "junit4". In case multi junit versions are installed,
the lower version (like 3.8) is found firstly, but junit4 is
required only. The search result will cause the failure.

Fix the issue by change search order to firstly search junit4
by default.

Fixes: http://tracker.ceph.com/issues/22828
Signed-off-by: Tone Zhang <tone.zhang@arm.com>
src/java/CMakeLists.txt