Open yurivict opened 6 months ago
Hi!
If I understand correctly, you've installed Catch2 via FreeBSD's package manager and the have tried to configure RESTinio with -DRESTINIO_DEP_CATCH2=system
. Am I right?
The idea behind system
, local
and find
was as simple as following:
local
has to be used;find_package
works and finds the X, then find
has to be used;INCLUDE
/LIB
environment variables), then system
has to be used as the last option.So, if Catch2 installed via FreeBSD's package manager and is available via CMake's find_package
then find
should be used as the value for RESTINIO_DEP_CATCH2
.
When cmake arguments include
-DRESTINIO_DEP_CATCH2=system
, configure fails:find_package(Catch2 REQUIRED)
is missing.The problem goes away with this patch that adds find_package in general:
This should be done only when
RESTINIO_DEP_CATCH2=system
.Version 0.7.2 FreeBSD 14.0 catch2-3.5.4