Skip to content

Commit

Permalink
update catch2 2.9.1 -> 3.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
injae committed Dec 30, 2023
1 parent 0a88724 commit bd02d0b
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ cppm_compiler_option(
find_cppkg(benchmark 1.5.2 MODULE benchmark::benchmark TYPE lib OPTIONAL OFF)
find_cppkg(RapidJSON 1.1.1 MODULE rapidjson TYPE lib OPTIONAL OFF)
find_cppkg(nlohmann_json 3.10.5 MODULE nlohmann_json::nlohmann_json TYPE lib OPTIONAL OFF)
find_cppkg(Catch2 2.9.1 MODULE Catch2::Catch2 TYPE lib OPTIONAL OFF)
find_cppkg(Catch2 3.5.0 MODULE Catch2::Catch2 TYPE lib OPTIONAL OFF)
find_cppkg(toml11 3.7.0 MODULE toml11::toml11 TYPE lib OPTIONAL OFF)
find_cppkg(yaml-cpp 0.7.0 MODULE yaml-cpp TYPE lib OPTIONAL OFF)
find_cppkg(fmt 8.0.1 MODULE fmt::fmt-header-only TYPE lib OPTIONAL OFF)
Expand Down
2 changes: 1 addition & 1 deletion cppm.toml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ source = ["tests/.*"]
nlohmann_json = { version="3.10.5", link="public", optional=true}
RapidJSON = { version="1.1.1", link="public", optional=true}
benchmark = { version="1.5.2", optional=true}
Catch2 = {version="2.9.1", optional=true}
Catch2 = {version="3.5.0", optional=true}
#pybind11 = "2.9.0"
#hiredis = "git"
#"redis++" = "1.3.2"
Expand Down
8 changes: 8 additions & 0 deletions thirdparty/Catch2/3.5.0/Catch2.cmake.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Cppkg Base Dependency Downloader
cmake_minimum_required(VERSION 3.6)
project(Catch2-3.5.0-install)

set(CPPM_VERSION ${CPPM_VERSION})
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/cppm_loader.cmake)
download_package(Catch2 3.5.0 URL https://github.com/catchorg/Catch2/archive/refs/tags/v3.5.0.tar.gz TYPE lib CMAKE_ARGS ${CMAKE_ARGS} -DCATCH_BUILD_TESTING=OFF)

6 changes: 6 additions & 0 deletions thirdparty/Catch2/3.5.0/cppkg.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[Catch2]
version = "3.5.0"
description = "modern, C++-native, header-only, test framework for unit-tests"
module = "Catch2::Catch2"
url="https://github.com/catchorg/Catch2/archive/refs/tags/v3.5.0.tar.gz"
flags="-DCATCH_BUILD_TESTING=OFF"

0 comments on commit bd02d0b

Please sign in to comment.