summaryrefslogtreecommitdiff
path: root/packages/net-im/spectrum/spectrum.exlib
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2020-08-14 15:53:18 +0300
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2020-08-14 15:53:18 +0300
commit2a98b7346cb701e4fd3066ab6bb3d906e30349cc (patch)
tree10171543e72d723da50b90cdd71e0d9c6e088bc7 /packages/net-im/spectrum/spectrum.exlib
parentbaa03f424cac1f45cf0452907ae2cb6957b7b426 (diff)
spectrum-scm build fix
Diffstat (limited to 'packages/net-im/spectrum/spectrum.exlib')
-rw-r--r--packages/net-im/spectrum/spectrum.exlib9
1 files changed, 7 insertions, 2 deletions
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