[CMake] ADD_CUSTOM_COMMAND, PRE_BUILD

Bill Hoffman bill.hoffman at kitware.com
Tue Dec 23 18:43:22 EST 2008


Pau Garcia i Quiles wrote:
> On Tue, Dec 23, 2008 at 9:38 PM, Andrey Sploshnov
> <ice.nightcrawler at gmail.com> wrote:
>> From documentation to CMake 2.6.x:
>>
>> "Note that the PRE_BUILD option is only supported on Visual Studio 7 or
>> later. For all other generators PRE_BUILD will be treated as PRE_LINK."
> 
> I'm using Visual Studio 9, which is newer than VS7, so PRE_BUILD
> should be supported
> 
>> What are you actually trying to do?
> 
> I'm generating .cpp and .h filesfrom .ice files (something like
> CORBA's IDL), which I later compile into the 'thetarget' library.
> 

You want to use custom commands....

See this FAQ:

http://www.cmake.org/Wiki/CMake_FAQ#How_can_I_generate_a_source_file_during_the_build.3F

-Bill


More information about the CMake mailing list