[CMake] Custom compile command?

Bill Hoffman bill.hoffman at kitware.com
Sat Jun 6 00:00:17 EDT 2009


Bob Tanner wrote:
> On 2009-06-04 15:57:22 -0500, Bill Hoffman <bill.hoffman at kitware.com> 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_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
> 
No, should work for both.   How does it fail on 2.4?


-Bill


More information about the CMake mailing list