mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-12-25 11:22:30 +01:00
27 lines
583 B
Diff
27 lines
583 B
Diff
Author: Holger Jaekel <holger.jaekel@gmx.de>
|
|
Summary: remove vendored Catch2
|
|
----
|
|
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -21,18 +21,12 @@
|
|
set(CMAKE_CXX_FLAGS_RELEASE "-O3")
|
|
endif()
|
|
|
|
-include(FetchContent)
|
|
include(GNUInstallDirs)
|
|
|
|
# Only include testing dependencies if BUILD_TESTING is ON
|
|
if(BUILD_TESTING)
|
|
include(CTest)
|
|
- FetchContent_Declare(
|
|
- Catch2
|
|
- GIT_REPOSITORY https://github.com/catchorg/Catch2.git
|
|
- GIT_TAG v3.4.0
|
|
- )
|
|
- FetchContent_MakeAvailable(Catch2)
|
|
+ find_package(Catch2 CONFIG)
|
|
include(Catch)
|
|
endif()
|
|
|