Try changing the configure command to "call bootstrap.bat" instead.<div><br></div><div>I suspect this is related to the symptoms reported in these bugs:</div><div><br></div><div> <a href="http://public.kitware.com/Bug/view.php?id=12445">http://public.kitware.com/Bug/view.php?id=12445</a></div>
<div> <a href="http://public.kitware.com/Bug/view.php?id=12461">http://public.kitware.com/Bug/view.php?id=12461</a><br><br></div><div>Related to using "bat" or "cmd" files as custom commands. We need to get those fixed for 2.8.7 in the VS 2010 generator.</div>
<div><br></div><div>Let me know if adding "call " to the front of the command works in this case.</div><div><br></div><div><br></div><div>Thanks,</div><div>David</div><div><br></div><div><br></div><div><div class="gmail_quote">
On Tue, Oct 25, 2011 at 5:30 PM, Ben Medina <span dir="ltr"><<a href="mailto:ben.medina@gmail.com">ben.medina@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hello all,<br>
<br>
I'm trying to build Boost as an external project, but it won't build<br>
if I use the VS2010 generator. I've whittled the code down to the<br>
following CMakeLists.txt:<br>
<br>
cmake_minimum_required(VERSION 2.8)<br>
project (boost-external)<br>
<br>
set (Boost_Source "E:/boost_1_47_0")<br>
<br>
include(ExternalProject)<br>
ExternalProject_Add(<br>
Boost<br>
SOURCE_DIR "${Boost_Source}"<br>
UPDATE_COMMAND ""<br>
BUILD_IN_SOURCE 1<br>
CONFIGURE_COMMAND bootstrap.bat<br>
BUILD_COMMAND b2 install<br>
INSTALL_COMMAND ""<br>
)<br>
<br>
When I build the project, the configure step happens, but the build<br>
step is skipped:<br>
<br>
Microsoft (R) Visual Studio Version 10.0.40219.1.<br>
Copyright (C) Microsoft Corp. All rights reserved.<br>
2>------ Build started: Project: Boost, Configuration: Debug x64 ------<br>
2> Performing configure step for 'Boost'<br>
2> Building Boost.Build engine<br>
2><br>
2> Bootstrapping is done. To build, run:<br>
2><br>
2> .\b2<br>
2><br>
2> To adjust configuration, edit 'project-config.jam'.<br>
2> Further information:<br>
2><br>
2> - Command line help:<br>
2> .\b2 --help<br>
2><br>
2> - Getting started guide:<br>
2> <a href="http://boost.org/more/getting_started/windows.html" target="_blank">http://boost.org/more/getting_started/windows.html</a><br>
2><br>
2> - Boost.Build documentation:<br>
2> <a href="http://www.boost.org/boost-build2/doc/html/index.html" target="_blank">http://www.boost.org/boost-build2/doc/html/index.html</a><br>
3>------ Build started: Project: ALL_BUILD, Configuration: Debug x64 ------<br>
3> Build all projects<br>
========== Build: 3 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========<br>
<br>
When I use the VS2008 generator, the project builds as expected:<br>
<br>
Microsoft (R) Visual Studio Version 9.0.30729.1.<br>
Copyright (C) Microsoft Corp. All rights reserved.<br>
1>------ Build started: Project: Boost, Configuration: Debug x64 ------<br>
1>Creating directories for 'Boost'<br>
1>No download step for 'Boost'<br>
1>No patch step for 'Boost'<br>
1>No update step for 'Boost'<br>
1>Performing configure step for 'Boost'<br>
1>Building Boost.Build engine<br>
...<br>
1>Generating Code...<br>
1>Bootstrapping is done. To build, run:<br>
1> .\b2<br>
1><br>
1>To adjust configuration, edit 'project-config.jam'.<br>
1>Further information:<br>
1> - Command line help:<br>
1> .\b2 --help<br>
1><br>
1> - Getting started guide:<br>
1> <a href="http://boost.org/more/getting_started/windows.html" target="_blank">http://boost.org/more/getting_started/windows.html</a><br>
1><br>
1> - Boost.Build documentation:<br>
1> <a href="http://www.boost.org/boost-build2/doc/html/index.html" target="_blank">http://www.boost.org/boost-build2/doc/html/index.html</a><br>
1>Performing build step for 'Boost'<br>
1>has_icu_test.cpp<br>
1>Performing configuration checks<br>
...<br>
<br>
And it goes on to build from there.<br>
<br>
<br>
I'm using CMake 2.8.6. Is there some way I can work around this, or<br>
should I file a bug?<br>
<br>
Thanks,<br>
Ben<br>
<font color="#888888">--<br>
<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</font></blockquote></div><br></div>