blob: 350fe02ca32ff13c6b1165a985d02ca8aa23119d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
$NetBSD: patch-aa,v 1.2 2015/11/21 20:18:14 abs Exp $
--- cmake/modules/FindXscreensaver.cmake.orig 2009-02-07 20:34:16.000000000 +0000
+++ cmake/modules/FindXscreensaver.cmake
@@ -25,6 +25,7 @@ bin/xscreensaver-hacks hacks)
set(xscreensaver_alldirs ${xscreensaver_alldirs} ${xscreensaver_path}/${suffix})
endforeach(xscreensaver_path ${xscreensaver_checkdirs} )
endforeach(suffix lib${LIB_SUFFIX}/xscreensaver lib/xscreensaver lib64/xscreensaver libexec/xscreensaver bin/xscreensaver-hacks hacks)
+if (NOT XSCREENSAVER_DIR)
FIND_PATH(XSCREENSAVER_DIR deco ${xscreensaver_alldirs})
set(XSCREENSAVER_CONFIG_DIR)
@@ -49,7 +50,7 @@ bin/xscreensaver-hacks hacks)
set(XSCREENSAVER_CONFIG_DIR "${XSCREENSAVER_CONFIG_DECO}/config/")
#MESSAGE(STATUS "XSCREENSAVER_CONFIG_DIR <${XSCREENSAVER_CONFIG_DIR}>")
endif(XSCREENSAVER_CONFIG_DECO)
-
+endif(NOT XSCREENSAVER_DIR)
# Try and locate XScreenSaver config when path doesn't include config
if(NOT XSCREENSAVER_CONFIG_DIR)
|