[CMake] Install library

Timenkov Yuri ytimenkov at gmail.com
Thu Sep 25 10:58:35 EDT 2008


Look for CMAKE_INSTALL_SO_NO_EXE in your cache / CMakeLists.
Also, look for its definition in cmake/Modules/Platform/Linux.cmake.


On Thu, Sep 25, 2008 at 5:54 PM, Jan Dinger <dinger.jan at googlemail.com>wrote:

> Hallo folks,
>
> I've build my library with cmake, and I'll install (make install) my
> library, it works fine, but I've a permission problem, the builded library
> has the following permissions:
>
> ### snip ###
> lrwxrwxrwx 1 jan jan   21 2008-09-25 15:48 libcorealgorithm.so ->
> libcorealgorithm.so.0
> lrwxrwxrwx 1 jan jan   25 2008-09-25 15:48 libcorealgorithm.so.0 ->
> libcorealgorithm.so.0.0.1
> -rwxr-xr-x 1 jan jan 7178 2008-09-25 15:48 libcorealgorithm.so.0.0.1
> ### snap ###
>
> Thats right.
>
>
> My installed library has invalid permissions:
>
> ### snip ###
> lrwxrwxrwx 1 root staff   21 2008-09-25 15:48 libcorealgorithm.so ->
> libcorealgorithm.so.0
> lrwxrwxrwx 1 root staff   25 2008-09-25 15:48 libcorealgorithm.so.0 ->
> libcorealgorithm.so.0.0.1
> -rw-r--r-- 1 root staff 7178 2008-09-25 15:48 libcorealgorithm.so.0.0.1
> ### snap ###
>
> There is no file with executable permission.
>
>
> Here is a part of my cmake file:
>
> ### snip ###
> SET (LIBRARYNAME corealgorithm)
>
> SET (LIB_MAJOR 0)
> SET (LIB_MINOR 0)
> SET (LIB_RELEASE 1)
>
> add_library (${LIBRARYNAME} SHARED ${HDRS} ${SRC})
>
> SET (_soversion ${LIB_MAJOR}.${LIB_MINOR}.${LIB_RELEASE})
>
> set_target_properties(${LIBRARYNAME} PROPERTIES SOVERSION ${LIB_MAJOR}
> VERSION ${_soversion})
>
> target_link_libraries(${LIBRARYNAME})
>
> SET (LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/lib)
>
> INSTALL(FILES ${HDRS} DESTINATION /usr/local/include/ns/corealgorithm)
> INSTALL(TARGETS ${LIBRARYNAME} LIBRARY DESTINATION
> /usr/local/lib/ns/corealgorithm)
> ### snap ###
>
> Have someone an idea?
>
> so long
>
> jd
>
>
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20080925/e6619f05/attachment.htm>


More information about the CMake mailing list