dont return a system path if cmake's 'WITH_INSTALL_PORTABLE' is enabled. this way...
[blender.git] / intern / ghost / CMakeLists.txt
index d629b44a1061da380d97526bf41b8a65d6f4b9c9..6c86cf82f0e4588fb33375f3bf47d72273d6200d 100644 (file)
@@ -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)