patch [#23717] Another install target fix for cmake/linux
authorCampbell Barton <ideasman42@gmail.com>
Wed, 8 Sep 2010 03:13:19 +0000 (03:13 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 8 Sep 2010 03:13:19 +0000 (03:13 +0000)
from Ralf H√∂lzemer (cheleb)

 fix for *nix install target

source/creator/CMakeLists.txt

index 1e6ae8a8492ada71cd8cdba63a63324c7f4d198c..89eb5ea97c1e88ac208d0d3fa9d8bdec90f12bea 100644 (file)
@@ -222,19 +222,19 @@ IF(WITH_INSTALL)
                )
                INSTALL(
                        DIRECTORY ${CMAKE_SOURCE_DIR}/release/scripts/
-                       DESTINATION ${BLENDERPATH}/scripts
+                       DESTINATION ${CMAKE_INSTALL_PREFIX}/share/blender/${BLENDER_VERSION}/scripts
                        PATTERN ".svn" EXCLUDE
                        PATTERN "*.pyc" EXCLUDE
                )
                INSTALL(
                        DIRECTORY ${CMAKE_SOURCE_DIR}/release/datafiles/brushicons/
-                       DESTINATION ${BLENDERPATH}/datafiles/brushicons
+                       DESTINATION ${CMAKE_INSTALL_PREFIX}/share/blender/${BLENDER_VERSION}/datafiles/brushicons
                        PATTERN ".svn" EXCLUDE
                )
                IF(WITH_INTERNATIONAL)
                        INSTALL(
                                DIRECTORY ${CMAKE_SOURCE_DIR}/release/bin/.blender/locale/
-                               DESTINATION ${BLENDERPATH}/datafiles/locale
+                               DESTINATION ${CMAKE_INSTALL_PREFIX}/share/blender/${BLENDER_VERSION}/datafiles/locale
                                PATTERN ".svn" EXCLUDE
                        )
                ENDIF(WITH_INTERNATIONAL)