This is an automated email from the ASF dual-hosted git repository.

martinzink pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi-minifi-cpp.git


The following commit(s) were added to refs/heads/main by this push:
     new a1aaf191f MINIFICPP-2882 Fix missing catch2 target in Conan build 
(#2236)
a1aaf191f is described below

commit a1aaf191f59fd8f6b3abe8ec9ac21b78ec256cf9
Author: Gabor Gyimesi <[email protected]>
AuthorDate: Mon Aug 10 16:29:33 2026 +0200

    MINIFICPP-2882 Fix missing catch2 target in Conan build (#2236)
---
 cmake/GetCatch2.cmake | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/cmake/GetCatch2.cmake b/cmake/GetCatch2.cmake
index 8d4d6c4e0..30f30bfc1 100644
--- a/cmake/GetCatch2.cmake
+++ b/cmake/GetCatch2.cmake
@@ -21,6 +21,9 @@ if(MINIFI_CATCH2_SOURCE STREQUAL "CONAN")
     if (NOT TARGET Catch2WithMain)
         add_library(Catch2WithMain ALIAS Catch2::Catch2WithMain)
     endif()
+    if (NOT TARGET Catch2)
+        add_library(Catch2 ALIAS Catch2::Catch2)
+    endif()
 elseif(MINIFI_CATCH2_SOURCE STREQUAL "BUILD")
     message("Using CMake to build Catch2 from source")
     include(Catch2)

Reply via email to