aboutsummaryrefslogtreecommitdiff
path: root/libraries/spdlog/spdlog.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/spdlog/spdlog.SlackBuild')
-rw-r--r--libraries/spdlog/spdlog.SlackBuild11
1 files changed, 8 insertions, 3 deletions
diff --git a/libraries/spdlog/spdlog.SlackBuild b/libraries/spdlog/spdlog.SlackBuild
index 029d45631639..5c56a082f620 100644
--- a/libraries/spdlog/spdlog.SlackBuild
+++ b/libraries/spdlog/spdlog.SlackBuild
@@ -24,7 +24,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=spdlog
-VERSION=${VERSION:-1.5.0}
+VERSION=${VERSION:-1.8.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -70,8 +70,12 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-FMT=OFF
-pkg-config --exists fmt && FMT=ON
+FMT=ON
+pkg-config --exists fmt || FMT=OFF
+
+# Require an older cmake version.
+sed -i 's/3.10/3.5.2/' CMakeLists.txt
+sed -i 's/3.10/3.5.2/' tests/CMakeLists.txt
mkdir -p build
cd build
@@ -84,6 +88,7 @@ cd build
-DSPDLOG_BUILD_BENCH=OFF \
-DSPDLOG_BUILD_EXAMPLE=OFF \
-DSPDLOG_FMT_EXTERNAL=$FMT \
+ -DCMAKE_SKIP_RPATH=TRUE \
-DCMAKE_BUILD_TYPE=Release ..
make
make install DESTDIR=$PKG