Skip to content

Commit

Permalink
Migrate to CMake
Browse files Browse the repository at this point in the history
  • Loading branch information
singiamtel committed Sep 5, 2024
1 parent 98a426f commit a44a802
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions json-c.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@ build_requires:
- alibuild-recipe-tools
---
#!/bin/bash -e
rsync -a --delete --exclude '**/.git' --delete-excluded $SOURCEDIR/ ./

mkdir build
cd build
../cmake-configure --disable-shared --enable-static --prefix="$INSTALLROOT"
make ${JOBS+-j $JOBS} install
cmake "$SOURCEDIR" \
-DCMAKE_INSTALL_PREFIX=$INSTALLROOT \

Check notice on line 13 in json-c.sh

View workflow job for this annotation

GitHub Actions / alidistlint

Double quote to prevent globbing and word splitting. [SC2086]
-DBUILD_SHARED_LIBS=OFF \
${CMAKE_BUILD_TYPE:+-DCMAKE_BUILD_TYPE=$CMAKE_BUILD_TYPE}

cmake --build . --target install ${JOBS:+-- -j$JOBS}

mkdir -p "$INSTALLROOT/etc/modulefiles"
alibuild-generate-module --bin --lib --cmake > "$INSTALLROOT/etc/modulefiles/$PKGNAME"

0 comments on commit a44a802

Please sign in to comment.