[CMake] Re: custom build

Matthew Woehlke mw_triad at users.sourceforge.net
Thu May 24 12:06:03 EDT 2007


Won-Ki Jeong wrote:
> I want to do a custom build based on the build type. I know how to
> define ADD_CUSTOM_COMMAND but I do not know how to run custom command
> selectively. Because the build type can be set on the fly, I am not
> sure if it is possible. Any comment will be appreciated. I am using
> CMake on Windows with Visual Studio 2005. Thanks

IF(<buildtype is whatever>)
ADD_CUSTOM_COMMAND(...)
ENDIF(<buildtype is whatever>)

...?

-- 
Matthew
"Nobody expects the traditional Bourne shell!"



More information about the CMake mailing list