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-t

Re: [CMake] Custom compile command?

2009-06-06 Thread Bill Hoffman
Bob Tanner wrote: On Jun 5, 2009, at 11:00 PM, Bill Hoffman wrote: Works fine on osx+cmake version 2.6-patch 4 BUT fails on ubuntu+hardy+cmake version 2.4-patch 7 No, should work for both. How does it fail on 2.4? Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .h

Re: [CMake] Custom compile command?

2009-06-05 Thread Bob Tanner
On 2009-06-05 23:00:17 -0500, Bill Hoffman said: Works fine on osx+cmake version 2.6-patch 4 BUT fails on ubuntu+hardy+cmake version 2.4-patch 7 No, should work for both. How does it fail on 2.4? Just confirmed that "cmake version 2.6-patch 2" on jaunty/ubuntu works. Evidence mounting t

Re: [CMake] Custom compile command?

2009-06-05 Thread Bob Tanner
On 2009-06-05 23:00:17 -0500, Bill Hoffman said: No, should work for both. How does it fail on 2.4? Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp .hxx .in .txx CMake Error: Cannot find source file "/tmp/osx-branch/Vanilla/robots/commands_puck.c" for target "puc

Re: [CMake] Custom compile command?

2009-06-05 Thread Bill Hoffman
Bob Tanner wrote: On 2009-06-04 15:57:22 -0500, Bill Hoffman said: set(COMMANDS_TYPE DOG) configure_file(${CMAKE_CURRENT_SOURCE_DIR}/commands.c.in ${CMAKE_CURRENT_BINARY_DIR}/commands_mars.c) set(COMMANDS_TYPE PUCK) configure_file(${CMAKE_CURRENT_SOURCE_DIR}/commands.c.in

Re: [CMake] Custom compile command?

2009-06-05 Thread Bob Tanner
On 2009-06-04 15:57:22 -0500, Bill Hoffman said: set(COMMANDS_TYPE DOG) configure_file(${CMAKE_CURRENT_SOURCE_DIR}/commands.c.in ${CMAKE_CURRENT_BINARY_DIR}/commands_mars.c) set(COMMANDS_TYPE PUCK) configure_file(${CMAKE_CURRENT_SOURCE_DIR}/commands.c.in ${CMAKE

Re: [CMake] Custom compile command?

2009-06-04 Thread Bill Hoffman
Bob Tanner wrote: I'm moving an open source project (netrek) to cmake. Things are going great except for 1 fairly convoluted Makefile snippet listed below: Cool! I used to love Xtrek! I wasted many hours playing that at GE in the early 90's. commands_mars.o: $(PMAKE) ${srcdir}/../ntser

Re: [CMake] Custom compile command?

2009-06-04 Thread Michael Jackson
On Jun 4, 2009, at 4:18 PM, Bob Tanner wrote: I'm moving an open source project (netrek) to cmake. Things are going great except for 1 fairly convoluted Makefile snippet listed below: commands_mars.o: $(PMAKE) ${srcdir}/../ntserv/commands.c $(CC) $(CFLAGS) $(DEP) -DDOG -c ${srcdir}/

[CMake] Custom compile command?

2009-06-04 Thread Bob Tanner
I'm moving an open source project (netrek) to cmake. Things are going great except for 1 fairly convoluted Makefile snippet listed below: commands_mars.o: $(PMAKE) ${srcdir}/../ntserv/commands.c $(CC) $(CFLAGS) $(DEP) -DDOG -c ${srcdir}/../ntserv/commands.c -o commands_mars.o commands