Description: Override SFML_DOC_PATH in SFMLConfig.cmake The existing detection assumes the documentation is installed in /usr/share/doc/SFML, but we install it into /usr/share/doc/libsfml-dev. Author: James Cowgill Forwarded: not-needed --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ --- a/cmake/SFMLConfig.cmake.in +++ b/cmake/SFMLConfig.cmake.in @@ -63,23 +63,7 @@ if (NOT SFML_FIND_COMPONENTS) message(FATAL_ERROR "find_package(SFML) called with no component") endif() -set(FIND_SFML_PATHS - "${CMAKE_CURRENT_LIST_DIR}/../.." - ${SFML_ROOT} - $ENV{SFML_ROOT} - ~/Library/Frameworks - /Library/Frameworks - /usr/local - /usr - /sw - /opt/local - /opt/csw - /opt) - -find_path(SFML_DOC_DIR SFML.tag - PATH_SUFFIXES SFML/doc share/doc/SFML - PATHS ${FIND_SFML_PATHS}) - +set(SFML_DOC_PATH "/usr/share/doc/libsfml-dev") # Update requested components (eg. request window component if graphics component was requested) set(FIND_SFML_SYSTEM_DEPENDENCIES "")