> I stumbled on a problem with FindPackageHandleStandardArgs,
> which
> probably arises from my misunderstanding of how to properly
> use it.

In FIND_PACKAGE_HANDLE_STANDARD_ARGS I inlude only variables that must always 
be defined in order for a package to function. If some variable can be omitted 
without any harm - it should not appear FIND_PACKAGE_HANDLE_STANDARD_ARGS.

Example:

INCLUDE(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(GSL DEFAULT_MSG GSL_LIBRARY
GSL_CBLAS_LIBRARY GSL_INCLUDE_DIR)

MARK_AS_ADVANCED(GSL_INCLUDE_DIR GSL_LIBRARY GSL_CBLAS_LIBRARY
GSL_CXX_FLAGS GSL_LINK_DIRECTORIES GSL_CONFIG_EXECUTABLE)


      
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to