Re: [CMake] FindDoxygen is doing find_package() when it is included

2017-07-07 Thread Robert Dailey
Apologies for the confusion and spam: I figured out that when you do a find_package(), it also implicitly includes the contents of that module into your list file so you can access its functions. I was under the impression I had to include FindDoxygen.cmake explicitly to access the functions it pro

Re: [CMake] FindDoxygen is doing find_package() when it is included

2017-07-07 Thread Robert Dailey
I actually confused myself a bit... I think the issue is not that finding happens when including it, but that doxygen_add_docs() is bundled with the find module. What is the intended usage of this? If I do find_package() will that also make doxygen_add_docs() available? Or do I have to explicitly i

[CMake] FindDoxygen is doing find_package() when it is included

2017-07-07 Thread Robert Dailey
When I do this: message( "blah1" ) include( FindDoxygen ) message( "blah2" ) find_package( Doxygen 1.8.6 OPTIONAL_COMPONENTS dot ) message( "blah3" ) I get this output: blah1 -- Found Doxygen: C:/Program Files/doxygen/bin/doxygen.exe (found version "1.8.13") found components: doxygen missin