I expanded default cmake flags in Fedora, RHEL and CentOS.
I _must_ use them and only them.

From other side - razorqt, libqtxdg, liblxqt have no same problems.
Problems are just n these 3 packages - libsysstat, liblxqt-mount and lxqt-globalkeys.

So - I propose to solve these problems for all distros.

My current solution - in attach.
Bu I don't know how it will works in other distros.

22.10.2014 23:25, Luís Pereira:

On Wed, Oct 22, 2014 at 8:59 AM, Eugene Pivnev <ti.eug...@gmail.com <http://gmail.com>> wrote:
>   /usr/bin/cmake \
>         -DCMAKE_C_FLAGS_RELEASE:STRING="-DNDEBUG" \
>         -DCMAKE_CXX_FLAGS_RELEASE:STRING="-DNDEBUG" \
>         -DCMAKE_Fortran_FLAGS_RELEASE:STRING="-DNDEBUG" \
>         -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \
>         -DCMAKE_INSTALL_PREFIX:PATH=/usr \
>         -DINCLUDE_INSTALL_DIR:PATH=/usr/include \
>         -DLIB_INSTALL_DIR:PATH=/usr/lib \
>         -DSYSCONF_INSTALL_DIR:PATH=/etc \
>         -DSHARE_INSTALL_PREFIX:PATH=/usr/share \
> %if "lib" == "lib64"
>         -DLIB_SUFFIX=64 \
> %endif
>         -DBUILD_SHARED_LIBS:BOOL=ON


LIB_INSTALL_DIR and INCLUDE_INSTALL_DIR are *relative* paths.
You should use:
INCLUDE_INSTALL_DIR:PATH=include
LIB_INSTALL_DIR:PATH=lib

Take a look at the installs in the CMakeLists.txt:

install(TARGETS ${LXQTMOUNT_LIBRARY_NAME} DESTINATION ${LIB_INSTALL_DIR})
install(FILES ${lxqtmount_HDRS} DESTINATION ${INCLUDE_INSTALL_DIR}/${LXQTMOUNT_LIBRARY_NAME}) install(FILES ${LXQTMOUNT_NAMESPACE_HEADERS} DESTINATION ${INCLUDE_INSTALL_DIR}/${LXQTMOUNT_LIBRARY_NAME}/${LXQTMOUNT_HEADER_NAMESPACE})

# cmake config file
set(LXQTMOUNT_INCLUDE_DIR ${CMAKE_INSTALL_PREFIX}/${INCLUDE_INSTALL_DIR}/${LXQTMOUNT_LIBRARY_NAME})

install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${LXQTMOUNT_LIBRARY_NAME}-config.cmake DESTINATION share/cmake/${LXQTMOUNT_LIBRARY_NAME}) install(FILES cmake/lxqtmount_use.cmake DESTINATION share/cmake/${LXQTMOUNT_LIBRARY_NAME})

and

Please read the cmake install documentation: http://www.cmake.org/cmake/help/v3.0/command/install.html?highlight=install

Take a special attention to the DESTINATION section:

DESTINATION Specify the directory on disk to which a file will be installed. If a full path (with a leading slash or drive letter) is given it is used directly. If a relative path is given it is interpreted relative to the value of the CMAKE_INSTALL_PREFIX variable. The prefix can be relocated at installtime using the DESTDIR mechanism explained in the CMAKE_INSTALL_PREFIX variable documentation.

When reporting problems like this, please, post verbose logs and the scripts.
With the script the source of the problem becomes immediately evident.

Regards,
--
Luís Pereira

--- cmake/sysstat-config.cmake.in.orig	2014-10-23 11:32:57.251716560 +0400
+++ cmake/sysstat-config.cmake.in	2014-10-23 11:34:12.008850175 +0400
@@ -27,7 +27,7 @@
 
 set(SYSSTAT_LIBRARIES     ${SYSSTAT_LIBRARY} )
 set(SYSSTAT_INCLUDE_DIRS  ${SYSSTAT_INCLUDE_DIR} )
-set(SYSSTAT_LIBRARY_DIRS  @CMAKE_INSTALL_PREFIX@/@LIB_INSTALL_DIR@ )
+set(SYSSTAT_LIBRARY_DIRS  @LIB_INSTALL_DIR@ )
 set(SYSSTAT_USE_FILE      ${CMAKE_CURRENT_LIST_DIR}/sysstat_use.cmake)
 set(SYSSTAT_FOUND         1)
 
------------------------------------------------------------------------------
_______________________________________________
Lxde-list mailing list
Lxde-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxde-list

Reply via email to