dev-cafe / cmake-cookbook

CMake Cookbook recipes.
Other
2.71k stars 696 forks source link

Chapter 08, recipe 02: Command failed: The system cannot find the file specified #507

Open bengt-ehn opened 5 years ago

bengt-ehn commented 5 years ago

I get error "Command failed: The system cannot find the file specified" when building ("cmake --build .") Chapter 08, recipe 02, superbuilding with boost.

It seems like it tries to run bootstrap.sh on windows.

This might be partly duplicate to https://github.com/dev-cafe/cmake-cookbook/issues/404 but it is closed so I create new issue.

Error log: 08-02 - cmake boost superbuild fails.txt bootstrap.sh_causing error in windows cmake-cookbook chapter 8 recipe 2 superbuild.txt cmake windows fail

robertodr commented 5 years ago

Thanks for the detailed report! We were probably not clear enough in the various README files about what works and what doesn't in CI. This particular recipe only works on AppVeyor when using MSYS and the GNU toolchain I agree that this recipe should work with your toolchain, but neither me nor @bast are expert Windows user and we could not make it to work at the time of writing. Pull requests are always welcome and we can guide you through the CMake issues you might encounter if you decide to tackle it.

bengt-ehn commented 5 years ago

OK, thank you, Roberto. We now use Conan for external libraries. It actually works. :-)