Open Peter-Korobeynikov opened 3 years ago
I'm glad to hear that this module is still of use. CMake itself has changed drastically, so the module could definitely use some maintenance overall.
All your suggested changes seem good and I'd definitely welcome a pull request for that. Could you make one?
Hi! I happened to use your module in my project, so I will allow myself to make a couple of suggestions.
1) I suggest adding the following function to automate this process and wrapping _libfindprocess (See https://gitlab.kitware.com/cmake/community/-/wikis/doc/tutorials/How-To-Find-Libraries#using-libfindmacros)
These lines are:
(*) There may be bugs in the part of the code where dependencies are added, because I didn't test it (I did it for luck)
In this case, the search script itself is extremely simple, for example:
...
Process all includes and set found false if any are missing
or, for example, like this
-- Found MySQL == MySQL_FOUND = TRUE -- MySQL_DEPENDENCIES= -- MySQL_INCLUDE_OPTS=MySQL_INCLUDE_DIR -- MySQL_LIBRARY_OPTS= -- MySQL_INCLUDE_DIRS=complete nonsense -- MySQL_LIBRARIES=