ecmwf / ecbuild

A CMake-based build system, consisting of a collection of CMake macros and functions that ease the managing of software build systems
https://ecbuild.readthedocs.io
Apache License 2.0
26 stars 25 forks source link

Windows: use find_program to find bash #8

Closed dtip closed 5 years ago

dtip commented 5 years ago

execute_process() executes the child process using operating system APIs directly. This means that on Windows 10 with WSL installed, cmake was using WSL bash instead of conda-installed m2-bash. WSL bash is unable to parse Windows style paths which was causing a 'file not found' error.

dtip commented 5 years ago

Likewise - thanks for the in-depth review :)