From 2a98b7346cb701e4fd3066ab6bb3d906e30349cc Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Fri, 14 Aug 2020 15:53:18 +0300 Subject: spectrum-scm build fix --- packages/net-im/spectrum/spectrum.exlib | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'packages/net-im/spectrum/spectrum.exlib') diff --git a/packages/net-im/spectrum/spectrum.exlib b/packages/net-im/spectrum/spectrum.exlib index 09b1be6..5ef1ff3 100644 --- a/packages/net-im/spectrum/spectrum.exlib +++ b/packages/net-im/spectrum/spectrum.exlib @@ -84,8 +84,13 @@ if ever at_least 2.0.8; then # replace complicated broken module by simple pkg-config search # https://github.com/SpectrumIM/spectrum2/issues/300 - edo rm "${CMAKE_SOURCE}"/cmake_modules/Findjsoncpp.cmake - edo cp "${FILES}"/Findjsoncpp.cmake "${CMAKE_SOURCE}"/cmake_modules/Findjsoncpp.cmake + if ever is_scm; then + edo rm "${CMAKE_SOURCE}"/cmake_modules/FindJsonCpp.cmake + edo cp "${FILES}"/Findjsoncpp.cmake "${CMAKE_SOURCE}"/cmake_modules/FindJsonCpp.cmake + else + edo rm "${CMAKE_SOURCE}"/cmake_modules/Findjsoncpp.cmake + edo cp "${FILES}"/Findjsoncpp.cmake "${CMAKE_SOURCE}"/cmake_modules/Findjsoncpp.cmake + fi } fi -- cgit v1.2.3