[CMake] Different targets for different configurations

Mike Krus mike at mve.com
Fri Mar 23 05:33:07 EDT 2012


On 23/03/2012 09:10, Mike Krus wrote:
> Technically, that command could run when CMake is invoked (ie before any
> build invocation). In that case, if the generator is Visual Studio, I
> would simple run the script twice, once with parameters compatible for
> debug, once for release... Is there a way to do that?
answering my own question: execute_process is my new friend...


-- 
Mike Krus (PhD) - Principal Software Engineer

Midland Valley Exploration
144 West George Street
Glasgow G2 2HG, UK
Tel: +44 141 332 2681
Fax: +44 141 332 6792


More information about the CMake mailing list