File: 05_cmake_override_doc_path.patch

package info (click to toggle)
libsfml 3.0.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 13,704 kB
  • sloc: cpp: 52,754; ansic: 24,944; objc: 668; sh: 172; xml: 25; makefile: 18
file content (32 lines) | stat: -rw-r--r-- 982 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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 <jcowgill@debian.org>
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
@@ -77,20 +77,7 @@ foreach(component ${SFML_FIND_COMPONENTS
     endif()
 endforeach()
 
-set(FIND_SFML_PATHS
-    "${CMAKE_CURRENT_LIST_DIR}/../../.."
-    ~/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_COMPONENTS_SORTED "")