[CMake] Different targets for different configurations

Petr Kmoch petr.kmoch at gmail.com
Fri Mar 23 13:15:44 EDT 2012


Also, this: http://public.kitware.com/Bug/view.php?id=12877
and especially this: http://public.kitware.com/Bug/view.php?id=9974

The latter one even has a patch attached - maybe it could be merged?

On Fri, Mar 23, 2012 at 10:33 AM, Mike Krus <mike at mve.com> wrote:
> 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
> --
>
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake


More information about the CMake mailing list