Update package version to 3.10.0
This commit is contained in:
@@ -18,28 +18,31 @@ build() {
|
||||
mkdir build
|
||||
cd build
|
||||
|
||||
cmake -DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DCMAKE_INSTALL_LIBDIR=lib \
|
||||
-DCATCH_BUILD_EXAMPLES=OFF \
|
||||
-DCATCH_ENABLE_COVERAGE=OFF \
|
||||
-DCATCH_ENABLE_WERROR=OFF \
|
||||
-DBUILD_TESTING=OFF \
|
||||
cmake -DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DCMAKE_INSTALL_LIBDIR=lib \
|
||||
-DCATCH_BUILD_EXAMPLES=OFF \
|
||||
-DCATCH_ENABLE_COVERAGE=OFF \
|
||||
-DCATCH_ENABLE_WERROR=OFF \
|
||||
-DCATCH_DEVELOPMENT_BUILD=ON \
|
||||
-DBUILD_TESTING=ON \
|
||||
-DBUILD_SHARED_LIBS=OFF ..
|
||||
make
|
||||
cmake --build .
|
||||
}
|
||||
|
||||
# The check function is executed in the source directory
|
||||
# This function is used to run tests to verify the package has been compiled correctly
|
||||
check() {
|
||||
cd build
|
||||
make check
|
||||
|
||||
ctest
|
||||
}
|
||||
|
||||
# The package function is executed in the source directory
|
||||
# This function is used to move the compiled files into the output directory
|
||||
package() {
|
||||
cd build
|
||||
make DESTDIR="$BPM_OUTPUT" install
|
||||
|
||||
DESTDIR="$BPM_OUTPUT" cmake --install .
|
||||
|
||||
install -Dm644 "$BPM_SOURCE"/LICENSE.txt "$BPM_OUTPUT"/usr/share/licenses/catch2/LICENSE.txt
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user