Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP4:Update
libcue
cmake.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File cmake.diff of Package libcue
From: Tom Mbrt <tom.mbrt@googlemail.com> Date: Wed, 06 Jul 2016 04:25:32 +0000 Shall be removed whenever https://github.com/lipnitsk/libcue/pull/12 gets approved. --- CMakeLists.txt | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) Index: libcue-2.1.0/CMakeLists.txt =================================================================== --- libcue-2.1.0.orig/CMakeLists.txt +++ libcue-2.1.0/CMakeLists.txt @@ -7,6 +7,9 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.8 FATAL PROJECT(libcue) +include(GNUInstallDirs) + + SET(PACKAGE_STRING "${PACKAGE_NAME} ${PACKAGE_VERSION}") ADD_DEFINITIONS(-DPACKAGE_VERSION="${PACKAGE_VERSION}") ADD_DEFINITIONS(-DPACKAGE_STRING="${PACKAGE_STRING}") @@ -19,7 +22,7 @@ SET (CUE_SOURCES CONFIGURE_FILE(libcue.pc.in libcue.pc @ONLY) INSTALL(FILES ${CMAKE_BINARY_DIR}/libcue.pc - DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/pkgconfig) + DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig) INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}) INCLUDE_DIRECTORIES(${CMAKE_BINARY_DIR}) # for generated files @@ -44,14 +47,14 @@ SET_TARGET_PROPERTIES (cue C_VISIBILITY_PRESET hidden) INSTALL(TARGETS cue - LIBRARY DESTINATION lib - ARCHIVE DESTINATION lib) -INSTALL(FILES ${CMAKE_SOURCE_DIR}/libcue.h DESTINATION include) + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}) +INSTALL(FILES ${CMAKE_SOURCE_DIR}/libcue.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) if(CMAKE_HOST_UNIX) - INSTALL(DIRECTORY DESTINATION include/libcue) + INSTALL(DIRECTORY DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/libcue) INSTALL(CODE " EXECUTE_PROCESS(COMMAND ${CMAKE_COMMAND} -E create_symlink ../libcue.h - \$ENV{DESTDIR}/${CMAKE_INSTALL_PREFIX}/include/libcue/libcue.h) + \$ENV{DESTDIR}/${CMAKE_INSTALL_FULL_INCLUDEDIR}/libcue/libcue.h) ") endif(CMAKE_HOST_UNIX)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor