diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-03-25 08:23:58 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-03-25 08:23:58 +0300 |
commit | 06b04fa8862eee030ea4024f020992664c3457fe (patch) | |
tree | 774684867d6ac3539956ee0ba1e268a49deb604f /intern/ghost/CMakeLists.txt | |
parent | 5f8fa29755a062a3dff4a574c904f5e24cc48cca (diff) |
dont return a system path if cmake's 'WITH_INSTALL_PORTABLE' is enabled. this way portable builds wont find scripts in /usr/share.
Diffstat (limited to 'intern/ghost/CMakeLists.txt')
-rw-r--r-- | intern/ghost/CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
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) |