Closed
Description
Describe your environment
ProductName: macOS
ProductVersion: 12.4
BuildVersion: 21F79
Steps to reproduce
$ git rev-parse HEAD
2f0a3d69cb5fdf3486fd79502bc681f017ee04f3
$ cmake -GNinja -DBUILD_TESTING=OFF -DWITH_OTLP=ON ..
...
$ ninja
...
[103/115] Performing download step (git clone) for 'nlohmann_json_download'
Cloning into 'nlohmann_json_download'...
HEAD is now at 4f8fba140 Merge branch 'release/3.10.5'
[108/115] Performing install step for 'nlohmann_json_download'
FAILED: third_party/src/nlohmann_json_download-stamp/nlohmann_json_download-install /Users/jpeach/upstream/opentelemetry/opentelemetry-cpp/build/third_party/src/nlohmann_json_download-stamp/nlohmann_json_download-install
cd /Users/jpeach/upstream/opentelemetry/opentelemetry-cpp/build/third_party/src/nlohmann_json_download-build && /opt/homebrew/Cellar/cmake/3.23.2/bin/cmake -P /Users/jpeach/upstream/opentelemetry/opentelemetry-cpp/build/third_party/src/nlohmann_json_download-stamp/nlohmann_json_download-install-.cmake && /opt/homebrew/Cellar/cmake/3.23.2/bin/cmake -E touch /Users/jpeach/upstream/opentelemetry/opentelemetry-cpp/build/third_party/src/nlohmann_json_download-stamp/nlohmann_json_download-install
CMake Error at /Users/jpeach/upstream/opentelemetry/opentelemetry-cpp/build/third_party/src/nlohmann_json_download-stamp/nlohmann_json_download-install-.cmake:49 (message):
Command failed: 1
'/opt/homebrew/Cellar/cmake/3.23.2/bin/cmake' '--build' '.' '--target' 'install'
See also
/Users/jpeach/upstream/opentelemetry/opentelemetry-cpp/build/third_party/src/nlohmann_json_download-stamp/nlohmann_json_download-install-*.log
ninja: build stopped: subcommand failed.
What is the expected behavior?
I expected the build to download and build dependencies within the build tree. I did not expect it to attempt to install build dependencies to a global system location.
What is the actual behavior?
$ cat third_party/src/nlohmann_json_download-stamp/nlohmann_json_download-install-err.log
CMake Error at cmake_install.cmake:41 (file):
file INSTALL cannot make directory "/usr/local/include": Permission denied.