From 06b04fa8862eee030ea4024f020992664c3457fe Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 25 Mar 2011 05:23:58 +0000 Subject: dont return a system path if cmake's 'WITH_INSTALL_PORTABLE' is enabled. this way portable builds wont find scripts in /usr/share. --- intern/ghost/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'intern/ghost/CMakeLists.txt') diff --git a/intern/ghost/CMakeLists.txt b/intern/ghost/CMakeLists.txt index d629b44a106..6c86cf82f0e 100644 --- a/intern/ghost/CMakeLists.txt +++ b/intern/ghost/CMakeLists.txt @@ -137,7 +137,9 @@ elseif(UNIX) intern/GHOST_WindowX11.h ) - add_definitions(-DPREFIX="${CMAKE_INSTALL_PREFIX}") + if(NOT WITH_INSTALL_PORTABLE) + add_definitions(-DPREFIX="${CMAKE_INSTALL_PREFIX}") + endif() if(X11_XF86keysym_INCLUDE_PATH) add_definitions(-DWITH_XF86KEYSYM) -- cgit v1.2.3