Re: [CMake] Only install file if it does not exist?

2009-09-11 Thread Bob Tanner
ENDIF (NOT EXISTS ${CMAKE_INSTALL_PREFIX}/${_DEST}) ENDMACRO (COPY_IF_NOT_EXISTS _SRC _DEST) COPY_IF_NOT_EXISTS ("sample_features" "etc/features") The problem is ${CMAKE_CURRENT_SOURCE_DIR} is set to the out-of-source build directory. Is this why you said to use a parame

Re: [CMake] Only install file if it does not exist?

2009-09-09 Thread Bob Tanner
install $ grep "X" etc/features $ echo $? 1 Here is the Makefile login I'm attempting to mimic: if [ ! -f $(DESTDIR)$(SYSCONFDIR)/features ]; then \ $(INSTALLDATA) ${srcdir}/sample_features $(DESTDIR)$(SYSCONFDIR)/features ; \ fi

[CMake] Only install file if it does not exist?

2009-09-08 Thread Bob Tanner
) ENDMACRO (COPY_IF_DOES_NOT_EXIST SOURCE DESTINATION) Works the first time, but if I delete the destination file a make install won't install it again. Any help? -- Bob Tanner | Phone : (952 943-8700 http://www.real-time.com, Linux, OSX, VMware | Fax : (952)943-8500 Ke

Re: [CMake] osx-10.5 ranlib vs ranlib -c vs libtool

2009-06-06 Thread Bob Tanner
On 2009-06-06 08:07:01 -0500, Bill Hoffman said: Bob Tanner wrote: On 2009-06-05 17:37:11 -0500, Bob Tanner said: First question, how to I add "-c" to ranlib evocation? Sorry for the follow-up to my post, but here is the work-around I used. IF (UNIX) MESSAGE (STATUS "U

Re: [CMake] Custom compile command?

2009-06-06 Thread Bob Tanner
On 2009-06-06 07:43:21 -0500, Bill Hoffman said: You should use the full path to the files like this: set(puck_SOURCES ${CMAKE_CURRENT_BINARY_DIR}/commands_puck.c) Thank you! This method works for both 2.4 and 2.6. -- Bob Tanner | Phone : (952 943-8700 http://www.real

Re: [CMake] Custom compile command?

2009-06-05 Thread Bob Tanner
e mounting that set(COMMANDS_TYPE PUCK) configure_file(${CMAKE_CURRENT_SOURCE_DIR}/commands.c.in ${CMAKE_CURRENT_BINARY_DIR}/commands_puck.c) Doesn't work in cmake-2.4 -- Bob Tanner | Phone : (952 943-8700 http://www.real-time.com, Linux, OSX, VMware | Fax

Re: [CMake] Custom compile command?

2009-06-05 Thread Bob Tanner
cmake-2.6 to test there as well. (sorry if this is a dup, sent this over 1 hour ago, but still has not shown up in the archives) -- Bob Tanner | Phone : (952 943-8700 http://www.real-time.com, Linux, OSX, VMware | Fax : (952)943-8500 Key fingerprint = F785 DDFC

Re: [CMake] Custom compile command?

2009-06-05 Thread Bob Tanner
${CMAKE_CURRENT_BINARY_DIR}/commands_puck.c) Is this a 2.6 feature? Works fine on osx+cmake version 2.6-patch 4 BUT fails on ubuntu+hardy+cmake version 2.4-patch 7 -- Bob Tanner | Phone : (952 943-8700 http://www.real-time.com, Linux, OSX, VMware | Fax : (952)943-8500 Key

Re: [CMake] osx-10.5 ranlib vs ranlib -c vs libtool

2009-06-05 Thread Bob Tanner
On 2009-06-05 17:37:11 -0500, Bob Tanner said: First question, how to I add "-c" to ranlib evocation? Sorry for the follow-up to my post, but here is the work-around I used. IF (UNIX) MESSAGE (STATUS "Unix") IF (APPLE) SET(CMAKE_C_C

[CMake] osx-10.5 ranlib vs ranlib -c vs libtool

2009-06-05 Thread Bob Tanner
niversal files. " To ultimately, the ADD_LIBRARY should be changed to libtool. Just passing that information along. Thanks. -- Bob Tanner | Phone : (952 943-8700 http://www.real-time.com, Linux, OSX, VMware | Fax : (952)943-8500 Key fingerprint = F785 DDFC CF94 7CE8

[CMake] Custom compile command?

2009-06-04 Thread Bob Tanner
file (-o commands_mars, -o commands_puck). How would I do this in cmake? I looked at the ADD_CUSTOM_COMMAND but that doesn't seem the way to go. Any advise? Thanks. -- Bob Tanner | Phone : (952 943-8700 http://www.real-time.com, Linux, OSX, VMware | Fax : (952)94

Re: [CMake] Patches with "your name" all over them?

2009-03-23 Thread Bob Tanner
to change the -I flag to make it look int he build/src directory? -- Bob Tanner | Phone : (952 943-8700 http://www.real-time.com, Linux, OSX, VMware | Fax : (952)943-8500 Key fingerprint = F785 DDFC CF94 7CE8 AA87 3A9D 3895 26F1

[CMake] Patches with "your name" all over them?

2009-03-22 Thread Bob Tanner
omatically generated when cmake is run? Any documentation on what files (minimaly) need to be added to revision control so projects can build? Thanks. -- Bob Tanner | Phone : (952 943-8700 http://www.real-time.com, Linux, OSX, VMware | Fax : (952)943-8500 Key fingerprint = F785