Merge lp:~yugiohjcj/inkscape/yugiohjcj-inkscape into lp:~inkscape.dev/inkscape/trunk

Proposed by YuGiOhJCJ
Status: Needs review
Proposed branch: lp:~yugiohjcj/inkscape/yugiohjcj-inkscape
Merge into: lp:~inkscape.dev/inkscape/trunk
Diff against target: 68 lines (+9/-7)
3 files modified
CMakeLists.txt (+5/-3)
CMakeScripts/HelperMacros.cmake (+2/-2)
src/CMakeLists.txt (+2/-2)
To merge this branch: bzr merge lp:~yugiohjcj/inkscape/yugiohjcj-inkscape
Reviewer Review Type Date Requested Status
Bryce Harrington (community) code Approve
Review via email: mp+318991@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Bryce Harrington (bryce) wrote :

LGTM

review: Approve (code)

Unmerged revisions

15566. By YuGiOhJCJ
15565. By YuGiOhJCJ

* CMakeLists.txt: use the "CMAKE_INSTALL_LIBDIR" variable instead of a hard-coded "lib" string.
* CMakeScripts/HelperMacros.cmake: use the "CMAKE_INSTALL_LIBDIR" variable instead of a hard-coded "lib" string.
* src/CMakeLists.txt: use the "CMAKE_INSTALL_LIBDIR" variable instead of a hard-coded "lib" string.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'CMakeLists.txt'
--- CMakeLists.txt 2017-03-04 20:39:01 +0000
+++ CMakeLists.txt 2017-03-04 21:50:59 +0000
@@ -8,6 +8,7 @@
88
9include(CMakeScripts/HelperFunctions.cmake)9include(CMakeScripts/HelperFunctions.cmake)
10include(CMakeScripts/ConfigEnv.cmake)10include(CMakeScripts/ConfigEnv.cmake)
11include(GNUInstallDirs) # for the CMAKE_INSTALL_LIBDIR variable
1112
12# -----------------------------------------------------------------------------13# -----------------------------------------------------------------------------
13# CMake Configuration14# CMake Configuration
@@ -25,9 +26,9 @@
2526
26if(APPLE)27if(APPLE)
27 SET(CMAKE_MACOSX_RPATH TRUE)28 SET(CMAKE_MACOSX_RPATH TRUE)
28 SET(CMAKE_INSTALL_RPATH "@loader_path/../lib/inkscape")29 SET(CMAKE_INSTALL_RPATH "@loader_path/../${CMAKE_INSTALL_LIBDIR}/inkscape")
29else()30else()
30 SET(CMAKE_INSTALL_RPATH "$ORIGIN/../lib/inkscape")31 SET(CMAKE_INSTALL_RPATH "$ORIGIN/../${CMAKE_INSTALL_LIBDIR}/inkscape")
31endif()32endif()
3233
33cmake_policy(SET CMP0003 NEW) # don't be prolific with library paths34cmake_policy(SET CMP0003 NEW) # don't be prolific with library paths
@@ -70,7 +71,7 @@
70# Redirect output files71# Redirect output files
71# -----------------------------------------------------------------------------72# -----------------------------------------------------------------------------
72set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin CACHE INTERNAL "" )73set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin CACHE INTERNAL "" )
73set(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/lib CACHE INTERNAL "" )74set(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR} CACHE INTERNAL "" )
7475
75# -----------------------------------------------------------------------------76# -----------------------------------------------------------------------------
76# Options77# Options
@@ -270,6 +271,7 @@
270# cmake info271# cmake info
271message("CMAKE_BINARY_DIR: ${CMAKE_BINARY_DIR}")272message("CMAKE_BINARY_DIR: ${CMAKE_BINARY_DIR}")
272message("CMAKE_INSTALL_PREFIX: ${CMAKE_INSTALL_PREFIX}")273message("CMAKE_INSTALL_PREFIX: ${CMAKE_INSTALL_PREFIX}")
274message("CMAKE_INSTALL_LIBDIR: ${CMAKE_INSTALL_LIBDIR}")
273message("PACKAGE_LOCALE_DIR ${PACKAGE_LOCALE_DIR}")275message("PACKAGE_LOCALE_DIR ${PACKAGE_LOCALE_DIR}")
274message("CMAKE_SYSTEM_NAME: ${CMAKE_SYSTEM_NAME}")276message("CMAKE_SYSTEM_NAME: ${CMAKE_SYSTEM_NAME}")
275message("CMAKE_SYSTEM_VERSION: ${CMAKE_SYSTEM_VERSION}")277message("CMAKE_SYSTEM_VERSION: ${CMAKE_SYSTEM_VERSION}")
276278
=== modified file 'CMakeScripts/HelperMacros.cmake'
--- CMakeScripts/HelperMacros.cmake 2016-05-02 19:36:16 +0000
+++ CMakeScripts/HelperMacros.cmake 2017-03-04 21:50:59 +0000
@@ -35,8 +35,8 @@
35 # listed is helpful for IDE's (QtCreator/MSVC)35 # listed is helpful for IDE's (QtCreator/MSVC)
36 inkscape_source_group("${sources}")36 inkscape_source_group("${sources}")
37 install(TARGETS ${name} 37 install(TARGETS ${name}
38 LIBRARY DESTINATION lib/inkscape38 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/inkscape
39 ARCHIVE DESTINATION lib/inkscape39 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}/inkscape
40 )40 )
4141
42endmacro()42endmacro()
4343
=== modified file 'src/CMakeLists.txt'
--- src/CMakeLists.txt 2017-02-06 15:34:17 +0000
+++ src/CMakeLists.txt 2017-03-04 21:50:59 +0000
@@ -545,6 +545,6 @@
545 inkscape545 inkscape
546 inkview 546 inkview
547 RUNTIME DESTINATION bin547 RUNTIME DESTINATION bin
548 LIBRARY DESTINATION lib/inkscape548 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/inkscape
549 ARCHIVE DESTINATION lib/inkscape)549 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}/inkscape)
550endif()550endif()