[CMake] ExternalProject and Visual Studio

David Cole david.cole at kitware.com
Tue Aug 24 17:08:19 EDT 2010


Don't do this on line 175: (just delete the line)
BUILD_COMMAND ${CMAKE_BUILD_TOOL}

Instead, just let cmake compute the BUILD_COMMAND for you...

The default build command for ExternalProject_Add for cmake-built projects
is something like:
cmake --build . --config Release


HTH,
David


On Tue, Aug 24, 2010 at 4:21 PM, Guillaume Duhamel <
guillaume.duhamel at gmail.com> wrote:

> Hi,
>
> I'm using ExternalProject_Add to build a native-only part of my project.
> When used with Visual Studio, the build step only opens a new Visual
> Studio instance and doesn't automatically start building... in fact, it
> doesn't even choose the solution file.
>
> Is there any way to automatically open a solution file and start building?
>
> If it can help, here is my CMakelist.txt :
>
> http://yabause.svn.sourceforge.net/viewvc/yabause/branches/yabause-cmake/src/CMakeLists.txt?revision=2574&view=markup
>
> Thanks,
> Guillaume
>
>
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100824/d6d02223/attachment-0001.htm>


More information about the CMake mailing list