summaryrefslogtreecommitdiffstats
path: root/CMakeScripts/ConfigPaths.cmake
diff options
context:
space:
mode:
authorEduard Braun <eduard.braun2@gmx.de>2016-11-26 16:15:27 +0000
committerEduard Braun <eduard.braun2@gmx.de>2016-11-26 16:15:27 +0000
commit61b1ddd0599ee54f76494888524b156859134e85 (patch)
tree8c4868fabeaa011779f4449e6b5773d51a052f68 /CMakeScripts/ConfigPaths.cmake
parent[Bug #1644886] Color profiles not loaded on Windows (partial fix). (diff)
downloadinkscape-61b1ddd0599ee54f76494888524b156859134e85.tar.gz
inkscape-61b1ddd0599ee54f76494888524b156859134e85.zip
CMake: Add ${INKSCAPE_SHARE_INSTALL}
This is set to "share/inkscape" by default, on Windows we need to be able to install directly into "share" however (bzr r15278)
Diffstat (limited to 'CMakeScripts/ConfigPaths.cmake')
-rw-r--r--CMakeScripts/ConfigPaths.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/CMakeScripts/ConfigPaths.cmake b/CMakeScripts/ConfigPaths.cmake
index 9489ba047..fae8ceea6 100644
--- a/CMakeScripts/ConfigPaths.cmake
+++ b/CMakeScripts/ConfigPaths.cmake
@@ -9,6 +9,7 @@ if(WIN32)
set(PACKAGE_LOCALE_DIR "\\\\share\\\\locale")
set(SHARE_INSTALL "share" CACHE STRING "Data file install path. Must be a relative path (from CMAKE_INSTALL_PREFIX), with no trailing slash.")
+ set(INKSCAPE_SHARE_INSTALL "${SHARE_INSTALL}") # share/inkscape goes directly into /share on Windows
mark_as_advanced(SHARE_INSTALL)
else()
@@ -23,6 +24,7 @@ else()
if(NOT SHARE_INSTALL)
set(SHARE_INSTALL "share" CACHE STRING "Data file install path. Must be a relative path (from CMAKE_INSTALL_PREFIX), with no trailing slash.")
endif(NOT SHARE_INSTALL)
+ set(INKSCAPE_SHARE_INSTALL "${SHARE_INSTALL}/inkscape")
mark_as_advanced(SHARE_INSTALL)
endif() \ No newline at end of file