diff --git a/cmake/ThirdParties.cmake b/cmake/ThirdParties.cmake index 1673964..2988052 100644 --- a/cmake/ThirdParties.cmake +++ b/cmake/ThirdParties.cmake @@ -35,11 +35,13 @@ endmacro() # Now, conditionally find all dependencies that were not included above # via find_package, usually system installed packages. -if (TARGET Catch2::Catch2) - set(THIRDPARTY_BUILTIN_Catch2 "embedded") -else() - find_package(Catch2 REQUIRED) - set(THIRDPARTY_BUILTIN_Catch2 "system package") +if(LIBUNICODE_TESTING) + if (TARGET Catch2::Catch2) + set(THIRDPARTY_BUILTIN_Catch2 "embedded") + else() + find_package(Catch2 REQUIRED) + set(THIRDPARTY_BUILTIN_Catch2 "system package") + endif() endif() if(TARGET fmt) @@ -53,7 +55,9 @@ macro(ThirdPartiesSummary2) message(STATUS "==============================================================================") message(STATUS " ThirdParties") message(STATUS "------------------------------------------------------------------------------") +if(LIBUNICODE_TESTING) message(STATUS "Catch2 ${THIRDPARTY_BUILTIN_Catch2}") +endif() message(STATUS "fmt ${THIRDPARTY_BUILTIN_fmt}") message(STATUS "------------------------------------------------------------------------------") endmacro()