[CMake] Custom compile command?
Bob Tanner
tanner at real-time.com
Sat Jun 6 01:02:48 EDT 2009
On 2009-06-05 23:00:17 -0500, Bill Hoffman
<bill.hoffman at kitware.com> 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 "puck"
### Whack-a-do for making ntserv/commands.c into robots/commands_puck.o
set(COMMANDS_TYPE PUCK)
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/commands.c.cmake
${CMAKE_CURRENT_BINARY_DIR}/commands_puck.c
)
### Equivalent to PUCK_OBJS in Makefile.in
SET (puck_SOURCES
puck.c
puckmove.c
commands_puck.c
roboshar.c
)
$ cat commands.c.cmake
#define ${COMMANDS_TYPE}
#include "${CMAKE_CURRENT_SOURCE_DIR}/../ntserv/commands.c"
As previously stated, works fine on osx+cmake version 2.6-patch 4
I'm pbuilder'n jaunty+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 <tanner at real-time.com> | 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 0DDB E378
More information about the CMake
mailing list