Assertion failed when running on child directory in root directory
Environment:
alpine:3.7
Docker image inside Ubuntu 16.04
Steps to reproduce:
docker run -it --rm alpine sh
apk update && apk add build-base curl bash git c-ares-dev curl-dev libev-dev cmake
git clone https://github.com/aarond10/https_dns_proxy.git
cmake https_dns_proxy
Expected behavior:
Cmake to successfully configure the project and not display the error.
Actual behavior:
...
-- Configuring done
Assertion failed: local_path.empty() || local_path[local_path.size() - 1] != '/' (/home/buildozer/aports/main/cmake/src/cmake-3.9.5/Source/cmOutputConverter.cxx: ForceToRelativePath: 125)
Aborted (core dumped)
Workaround:
Instead of:
cmake https_dns_proxy
...you can run cmake
in a subshell:
(cd https_dns_proxy/ && cmake .)