On Wed, Oct 22, 2014 at 8:59 AM, Eugene Pivnev <[email protected]> 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
------------------------------------------------------------------------------
_______________________________________________
Lxde-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lxde-list

Reply via email to