You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running conan install . -b missing will produce a Catch2 CMake package that does not have the target Catch2::Catch2WithMain despite the option requiring it.
Logs
$ cmake ...
...
-- Conan: Target declared 'Catch2::Catch2'
...
CMake Error at test/CMakeLists.txt:15 (target_link_libraries):
Target "proj_test" links to:
Catch2::Catch2WithMain
but the target was not found. Possible reasons include:
* There is a typo in the target name.
* A find_package call is missing for an IMPORTED target.
* An ALIAS target is missing.
...
The text was updated successfully, but these errors were encountered:
this is a known issue at the moment, we are having a look
You need to define the options in the self.tool_requires(..., options = {}) to define them. The default_options only target "host" requirements at the moment. We don't know if this will change or not, but the self.tool_requires(... ,options={}) would be guaranteed to work now and in the future.
Environment details
Steps to reproduce
Given the conanfile.py:
Running
conan install . -b missing
will produce a Catch2 CMake package that does not have the targetCatch2::Catch2WithMain
despite the option requiring it.Logs
The text was updated successfully, but these errors were encountered: