Hi,
When writing a new FindX.cmake module following the spirit of Modern CMake,
that is without setting any X_LIBRARY and X_INCLUDE_DIR variables,
what is the strategy regarding use of find_package_handle_standard_args?
Shall I not use find_package_handle_standard_args at all?
If yes, shall I set X_FOUND and issue any related messages myself?
Shall I use it:
find_package_handle_standard_args(X DEFAULT_MSG X_LIBRARY X_INCLUDE_DIR)
and follow with
unset(X_LIBRARY)
unset(X_INCLUDE_DIR)
annoying users of FindX.cmake
Shall I simply forget the Modern CMake and set the legacy style variables?
Or something else?
Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
--
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:
https://cmake.org/mailman/listinfo/cmake