Package Details: catch2-git 3.0.0.preview4.r48.g81f612c9-1

Git Clone URL: https://aur.archlinux.org/catch2-git.git (read-only, click to copy)
Package Base: catch2-git
Description: Modern, C++-native, header-only, test framework for unit-tests, TDD and BDD (developmental version)
Upstream URL: https://github.com/catchorg/catch2
Licenses: boost
Conflicts: catch2
Provides: catch2
Submitter: rsa
Maintainer: xiretza
Last Packager: xiretza
Votes: 1
Popularity: 0.000000
First Submitted: 2018-02-27 04:45 (UTC)
Last Updated: 2022-03-13 15:22 (UTC)

Required by (50)

Sources (3)

Latest Comments

alecto commented on 2021-10-14 23:50 (UTC)

A few comments on the package:

  • It fails when starting check() because there's no longer a 'test' target in the makefile generated by CMake
  • would it be possible to build Catch2 in release mode?

jamespharvey20 commented on 2019-05-11 11:13 (UTC)

Adopted and fixed.

schnedan commented on 2019-02-28 22:07 (UTC)

just cloned the current from github... out of source builds works perfectly,...

neroburner commented on 2019-01-15 19:10 (UTC) (edited on 2019-01-15 19:11 (UTC) by neroburner)

package does not build anymore. I think it does not like the in-source build

[ 1%] Linking CXX executable SelfTest /bin/ld: cannot open output file SelfTest: Is a directory

can be fixed with out of tree build

build() {
    cmake -S "$srcdir/$_gitname" -B "$srcdir/$_gitname/_build" -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX="$pkgdir/usr" -DCMAKE_INSTALL_LIBDIR="lib"
    cmake --build "$srcdir/$_gitname/_build"
}
check() {
    cmake -S "$srcdir/$_gitname" -B "$srcdir/$_gitname/_build" -DBUILD_TESTING=ON
    cmake --build "$srcdir/$_gitname/_build" --target test
}
package() {
    cmake --build "$srcdir/$_gitname/_build" --target install
}