[CMake] Set executable for dll project in vs2010 with cmake

Petr Kmoch petr.kmoch at gmail.com
Mon Nov 25 07:41:16 EST 2013


Hi Elizabeta.

Unfortunately, that is not possible (directly). The reason is that settings
in the Debugging subtree of Configuration Properties are not stored in the
project files (.vc[x]proj), but in host-and-machine-specific .user files,
and CMake does not generate those (they are generated by VS the first time
a project is opened).

It is possible to work around this by generating the .user file yourself
(using `file(WRITE ...)` and similar commands); I've done it, but it's a
large-ish (and messy) chunk of work, especially if you need it to be
configurable.

Petr


On Mon, Nov 25, 2013 at 1:30 PM, elizabeta petreska <
elizabeta.petreska at gmail.com> wrote:

> Hi
> I want to set executable command for starting dll project with cmake.  The
> option  in vs2010 is in Project Properties->Configuration
> Properties->Debugging->Command
>
> Is this possible with cmake
>
> --
>
> Powered by www.kitware.com
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Kitware offers various services to support the CMake community. For more
> information on each offering, please visit:
>
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20131125/6b76d0e4/attachment.htm>


More information about the CMake mailing list