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 missing components: dot blah2 -- Found Doxygen: C:/Program Files/doxygen/bin/doxygen.exe (found suitable version "1.8.13", minimum required is "1.8.6") found components: doxygen missing components: dot blah3 Two questions: 1. Why is find_package() happening automatically when I include the find module? This is contrary to the behavior of other find modules. I do not want it to find doxygen for me, as I have some minimum version requirements and I do not want it to find dot. How can I disable this implied search behavior? 2. Each time I run my scripts, it keeps searching for doxygen. Even though I've specified dot as an optional component. I do not want it to keep searching for doxygen each time I generate. It should find it once and be done. How can I fix this behavior? -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake-developers