<div dir="ltr">Hallo folks,<br><br>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:<br>
<br>### snip ###<br>lrwxrwxrwx 1 jan jan 21 2008-09-25 15:48 libcorealgorithm.so -> libcorealgorithm.so.0<br>lrwxrwxrwx 1 jan jan 25 2008-09-25 15:48 libcorealgorithm.so.0 -> libcorealgorithm.so.0.0.1<br>-rwxr-xr-x 1 jan jan 7178 2008-09-25 15:48 libcorealgorithm.so.0.0.1<br>
### snap ###<br><br>Thats right.<br><br><br>My installed library has invalid permissions:<br><br>### snip ###<br>lrwxrwxrwx 1 root staff 21 2008-09-25 15:48 libcorealgorithm.so -> libcorealgorithm.so.0<br>lrwxrwxrwx 1 root staff 25 2008-09-25 15:48 libcorealgorithm.so.0 -> libcorealgorithm.so.0.0.1<br>
-rw-r--r-- 1 root staff 7178 2008-09-25 15:48 libcorealgorithm.so.0.0.1<br>### snap ###<br><br>There is no file with executable permission.<br><br><br>Here is a part of my cmake file:<br><br>### snip ###<br>SET (LIBRARYNAME corealgorithm)<br>
<br>SET (LIB_MAJOR 0)<br>SET (LIB_MINOR 0)<br>SET (LIB_RELEASE 1)<br><br>add_library (${LIBRARYNAME} SHARED ${HDRS} ${SRC})<br><br>SET (_soversion ${LIB_MAJOR}.${LIB_MINOR}.${LIB_RELEASE})<br><br>set_target_properties(${LIBRARYNAME} PROPERTIES SOVERSION ${LIB_MAJOR} VERSION ${_soversion})<br>
<br>target_link_libraries(${LIBRARYNAME})<br><br>SET (LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/lib)<br><br>INSTALL(FILES ${HDRS} DESTINATION /usr/local/include/ns/corealgorithm)<br>INSTALL(TARGETS ${LIBRARYNAME} LIBRARY DESTINATION /usr/local/lib/ns/corealgorithm)<br>
### snap ###<br><br>Have someone an idea?<br><br>so long<br><br>jd<br><br></div>