Repository navigation
Add KurentoModuleCreatorConfig with path to FindKurentoModuleCreator - #3
Conversation
Just use the same path as KurentoModuleCreatorConfig for simplicity. cmake find_package() cannot find FindKurentoModuleCreator by default but KurentoModuleCreatorConfig is found by default and can then update the modules directory list to include the path FindKurentoModuleCreator is in. The cmake version-specific modules dir can also be used but that reqires updating every time a new cmake version is released. See-also: https://cmake.org/cmake/help/latest/command/find_package.html#basic-signature-and-module-mode
|
Hi there, thanks for your Pull Request! A Kurento member needs to verify that this patch is reasonable to test. In case it is, they should write a comment with the phrase |
|
test this please
|
|
The original authors of Kurento did some serious CMake magic around the logic to find modules and such... and it hasn't essentially changed at all since then. But I guess everything is prone to improvements. Note that most Kurento modules can be installed for usage (typical scenario), or for writing custom plugins based on the module, which is what people do to write their own Kurento modules. So both use cases must be considered in all these files. I guess this wouldn't really break any development setup that depends on these modules right? |
|
The current cmake setup installs the cmake module into the internal
modules directory for a hardcoded list of several different cmake
versions, but not all versions that ever existed or will exist, and
notably the cmake version in Debian bullseye is missing. That setup
doesn't require any settings in the custom plugins to pull in the cmake
module. The new setup is to install the cmake module into one directory
that works with all cmake versions. As far as I can tell, as long as
the other custom plugins use find_package() or include(), then the new
setup will still work, although this does need to be tested.
…--
bye,
pabs
https://bonedaddy.net/pabs3/
|
|
Thanks for merging folks! |
Just use the same path as KurentoModuleCreatorConfig for simplicity.
cmake find_package() cannot find FindKurentoModuleCreator by default but
KurentoModuleCreatorConfig is found by default and can then update the
modules directory list to include the path FindKurentoModuleCreator is in.
The cmake version-specific modules dir can also be used but
that reqires updating every time a new cmake version is released.
See-also: https://cmake.org/cmake/help/latest/command/find_package.html#basic-signature-and-module-mode