blob: ba42003fe51877e01154204e2d481f5b3a5623b6 (
plain)
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
33
34
35
36
37
38
39
40
|
$NetBSD: patch-Modules_Platform_UnixPaths.cmake,v 1.2 2020/07/31 09:02:31 wiz Exp $
Patch in pkgsrc paths for finding stuff.
--- Modules/Platform/UnixPaths.cmake.orig 2020-07-15 11:19:20.000000000 +0000
+++ Modules/Platform/UnixPaths.cmake
@@ -27,7 +27,7 @@ get_filename_component(_CMAKE_INSTALL_DI
# synchronized
list(APPEND CMAKE_SYSTEM_PREFIX_PATH
# Standard
- /usr/local /usr /
+ @LOCALBASE@ /usr/local /usr /
# CMake install location
"${_CMAKE_INSTALL_DIR}"
@@ -47,20 +47,20 @@ endif()
# Non "standard" but common install prefixes
list(APPEND CMAKE_SYSTEM_PREFIX_PATH
- /usr/X11R6
- /usr/pkg
+ @X11BASE@
+ @LOCALBASE@
/opt
)
# List common include file locations not under the common prefixes.
list(APPEND CMAKE_SYSTEM_INCLUDE_PATH
# X11
- /usr/include/X11
+ @X11BASE@/include
)
list(APPEND CMAKE_SYSTEM_LIBRARY_PATH
# X11
- /usr/lib/X11
+ @X11BASE@/lib
)
list(APPEND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES
|