github: ci: add cmake build and source directories
authorÁlvaro Fernández Rojas <[email protected]>
Fri, 14 Nov 2025 14:08:07 +0000 (15:08 +0100)
committerÁlvaro Fernández Rojas <[email protected]>
Fri, 14 Nov 2025 14:08:07 +0000 (15:08 +0100)
Add cmake build and source directories to suppress the following warning:
CMake Warning:
  No source or binary directory provided. Both will be assumed to be the
  same as the current working directory, but note that this warning will
  become a fatal error in future CMake releases.

Signed-off-by: Álvaro Fernández Rojas <[email protected]>
.github/workflows/ci.yml

index 072d9d56d5828cac4a28d04e99d9271c1e0d8710..586b9d302122d478e3f8e4559da90085b84b6215 100644 (file)
@@ -55,7 +55,7 @@ jobs:
             -DCMAKE_C_COMPILER=${{ matrix.gcc }} \
             -DCMAKE_PREFIX_PATH=${GITHUB_WORKSPACE}/build \
             --install-prefix ${GITHUB_WORKSPACE}/build \
-            -B $BUILD_DIR
+            -B $BUILD_DIR -S .
           make -C $BUILD_DIR
           make -C $BUILD_DIR install
           echo "size_${{ matrix.arch }}_a=$( find $BUILD_DIR -type f -name libnl-tiny.a -printf '%s' )" >> $GITHUB_OUTPUT