diff options
author | Rolf Eike Beer <eike@sf-mail.de> | 2014-05-20 15:43:29 (GMT) |
---|---|---|
committer | Rolf Eike Beer <eike@sf-mail.de> | 2014-05-21 18:38:55 (GMT) |
commit | bd32b682f21738532cbfbe7cf5b0acd9e86f77cc (patch) | |
tree | 3088d23f923e1c65c54edab4f8a7b9240b74dd2c /Modules | |
parent | 04a0e5ff14e511ab4bdeeacf83b878e870265da1 (diff) | |
download | CMake-bd32b682f21738532cbfbe7cf5b0acd9e86f77cc.zip CMake-bd32b682f21738532cbfbe7cf5b0acd9e86f77cc.tar.gz CMake-bd32b682f21738532cbfbe7cf5b0acd9e86f77cc.tar.bz2 |
OpenBSD: honor the LOCALBASE and X11BASE environment variables
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/Platform/OpenBSD.cmake | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Modules/Platform/OpenBSD.cmake b/Modules/Platform/OpenBSD.cmake index 023f055..7ac6c7e 100644 --- a/Modules/Platform/OpenBSD.cmake +++ b/Modules/Platform/OpenBSD.cmake @@ -23,3 +23,16 @@ set_property(GLOBAL PROPERTY FIND_LIBRARY_USE_LIB64_PATHS FALSE) # OpenBSD policy requires that shared libraries be installed without # executable permission. set(CMAKE_INSTALL_SO_NO_EXE 1) + +if($ENV{LOCALBASE}) + set(OPENBSD_LOCALBASE $ENV{LOCALBASE}) +else() + set(OPENBSD_LOCALBASE /usr/local) +endif() +if($ENV{X11BASE}) + set(OPENBSD_X11BASE $ENV{X11BASE}) +else() + set(OPENBSD_X11BASE /usr/X11R6) +endif() + +list(APPEND CMAKE_SYSTEM_PREFIX_PATH ${OPENBSD_LOCALBASE}) |