commit 2f7a006b2036ad036cec9430ca4870b25e0af4e3
parent 0fdac364877da935c9851e9a1f78a8a5dbb52822
Author: [email protected] <[email protected]>
Date: Fri, 26 Jan 2024 13:39:53 +0000
Set CMAKE_INSTALL_PREFIX in ci/run
Diffstat:
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/ci/run.cmd b/ci/run.cmd
@@ -5,9 +5,10 @@ rmdir /s /q %build_dir%
mkdir %build_dir%
pushd %build_dir%
echo Running cmake -GNinja -DENABLE_TESTS=ON %* ..
-cmake -GNinja -DENABLE_TESTS=ON %* .. || exit /b
+cmake -GNinja -DENABLE_TESTS=ON -DCMAKE_INSTALL_PREFIX=dist %* .. || exit /b
echo Running ninja...
ninja %JOBS% || exit /b
+ninja install || exit /b
echo Running tests...
cd tests && ctest -V || exit /b
popd
diff --git a/ci/run.sh b/ci/run.sh
@@ -9,9 +9,10 @@ rm -r $build_dir || true
mkdir $build_dir
pushd $build_dir
echo Running cmake -GNinja -DENABLE_TESTS=ON "$@" $src_dir
-cmake -GNinja -DENABLE_TESTS=ON "$@" $src_dir
+cmake -GNinja -DENABLE_TESTS=ON -DCMAKE_INSTALL_PREFIX=dist "$@" $src_dir
echo Running ninja...
ninja
+ninja install
echo Running tests...
cd tests && ctest -V
popd