diff options
| author | Sebastian Faubel <sebastian@semiodesk.com> | 2016-07-06 14:04:54 +0000 |
|---|---|---|
| committer | Sebastian Faubel <sebastian@semiodesk.com> | 2016-07-06 14:04:54 +0000 |
| commit | f381a48f549f2a3c4d7ec48a1458e7555306766b (patch) | |
| tree | 696505caf1b911585f56bc8397ec6b91f918ed89 /CMakeScripts/ConfigPaths.cmake | |
| parent | Added missing files. (diff) | |
| download | inkscape-f381a48f549f2a3c4d7ec48a1458e7555306766b.tar.gz inkscape-f381a48f549f2a3c4d7ec48a1458e7555306766b.zip | |
Fixed config.h defines to point to the right locations for data (icons) and locales.
(bzr r15002.1.5)
Diffstat (limited to '')
| -rw-r--r-- | CMakeScripts/ConfigPaths.cmake | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/CMakeScripts/ConfigPaths.cmake b/CMakeScripts/ConfigPaths.cmake index cfe6c66b6..9774d4df2 100644 --- a/CMakeScripts/ConfigPaths.cmake +++ b/CMakeScripts/ConfigPaths.cmake @@ -1,9 +1,20 @@ message(STATUS "Creating build files in: ${CMAKE_CURRENT_BINARY_DIR}") if(WIN32) - set(PACKAGE_LOCALE_DIR "${CMAKE_INSTALL_PREFIX}/share/locale") # packagers might overwrite this + set(CMAKE_INSTALL_PREFIX "${CMAKE_BINARY_DIR}/inkscape") + + set(INKSCAPE_LIBDIR "\\\\lib") + set(INKSCAPE_DATADIR "") + + 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.") + + mark_as_advanced(SHARE_INSTALL) else() + set(INKSCAPE_LIBDIR "${CMAKE_INSTALL_PREFIX}/lib") + set(INKSCAPE_DATADIR "${CMAKE_INSTALL_PREFIX}/share") + # TODO: check and change this to correct value: if(NOT PACKAGE_LOCALE_DIR) set(PACKAGE_LOCALE_DIR "${CMAKE_INSTALL_PREFIX}/share/locale") # packagers might overwrite this |
