aports/community/libopendrive/30-catch2.patch
2025-11-05 22:32:54 +00:00

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()