Fix cmake install of blenderplayer for linux.
authorAntony Riakiotakis <kalast@gmail.com>
Thu, 13 Nov 2014 12:37:27 +0000 (13:37 +0100)
committerAntony Riakiotakis <kalast@gmail.com>
Thu, 13 Nov 2014 12:37:27 +0000 (13:37 +0100)
source/blenderplayer/CMakeLists.txt
source/creator/CMakeLists.txt

index c48578c791ba187aaaef997fb65e124d80752c84..01d19beb1eef965aba5ca9ab1590f30a1ec1a57e 100644 (file)
@@ -69,6 +69,13 @@ elseif(APPLE)
 
 else()
        add_executable(blenderplayer bad_level_call_stubs/stubs.c)
+
+       if(NOT WITH_INSTALL_PORTABLE)
+               install(
+                       TARGETS blenderplayer
+                       DESTINATION bin
+               )
+       endif()
 endif()
 
 add_dependencies(blenderplayer makesdna)
index 40dd954fbe0958363c5729ceb7537261bdf3bcf7..7fcba4de18872eca6e6db5fc78c349945238be60 100644 (file)
@@ -451,14 +451,6 @@ if(UNIX AND NOT APPLE)
                        )
                endif()
 
-
-               if(WITH_GAMEENGINE AND WITH_PLAYER)
-                       install(
-                               TARGETS blenderplayer
-                               DESTINATION bin
-                       )
-               endif()
-
                # misc files
                install(
                        FILES ${CMAKE_SOURCE_DIR}/release/freedesktop/blender.desktop