Hi,

I checked the soversion command but I don't know if it is that the problem.
In another CMakeLists.txt ( https://github.com/OpenKinect/libfreenect/blob/master/src/CMakeLists.txt )
there is the soversion command:

add_library (freenect SHARED ${SRC})
set_target_properties ( freenect PROPERTIES
  VERSION ${PROJECT_VER}
  SOVERSION ${PROJECT_APIVER}



I will try to explain better the problem with more information:

On a system Debian/x86 the cmake, make and make install worked successfully generating libfreenect.so.0.0 and the symbolic link libfreenect.so. On a different system cmake and make worked successfully generating libfreenect.so.0.0 but with make install the libfreenect.so is not generated and then the make install give errors. Do you know why could happen a situation like this? I have checked every CMakeLists and other CMake related configuration file in order to find commands used to create symbolic links but I have not found them.

Thanks



Il 17/01/2011 21:52, Tyler Roscoe ha scritto:
On Mon, Jan 17, 2011 at 06:24:58PM +0000, [email protected]  wrote:
        ln -s lib/libfreenect.so.0.0 lib/libfreenect.so
For this specific problem, check out:
http://www.cmake.org/cmake/help/cmake-2-8-docs.html#prop_tgt:SOVERSION

Should I use: add_custom_command ?
For the general problem of running arbitrary commands that CMake doesn't
already know how to do, add_custom_command() is the right track.



Original message:

   Hi everybody,

   I'd like to know if it is possible with cmake create a Makefile with
   shell
   commands.
   I mean, I need a Makefile of this type:

   # CMAKE generated file: DO NOT EDIT!
   # Generated by "Unix Makefiles" Generator, CMake Version 2.6

   # Default target executed when no arguments are given to make.
   default_target: all

           ln -s lib/libfreenect.so.0.0 lib/libfreenect.so

   ...stuff


   I'm trying to modify the libfreenect driver CMakeLists.txt
   http://pastebin.com/YB2kDTr5   but without success.

   The inital problem is that the Makefile builds the target and at the
   end it execute this command. I need it because when I compile the
   project I have no errors but the file lib/libfreenect.so is not
   generated. When I try make install, the Makefile is generated again so
     even if I modify the Makefile or create that symbolic link manually I
   always get the error.


   Should I use: add_custom_command ?


   By the way, this is the driver webpage:
   https://github.com/OpenKinect/libfreenect

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to