Closed realnc closed 2 years ago
That's not how cmake
works. 🙂
x86_64-apple-darwin21.1-cmake . -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_INSTALL_PREFIX:PATH=target
make -j ...
That's not how
cmake
works. slightly_smiling_facex86_64-apple-darwin21.1-cmake . -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_INSTALL_PREFIX:PATH=target make -j ...
That only works for makefiles. When using the cmake Ninja generator, or the Visual Studio one, or the XCode project one, then this doesn't work.
This is why cmake has a --build
option. However, I found the issue. Since cmake 3.20, -D
prevents build arguments from working. Previously, they would be silently ignored.
I'll clone the repo and push a fix shortly.
You are right. Thanks for the PR. 👍
Thanks! :)
After successfully installing osxcross, I can't get anything that uses cmake to build. Configuration succeeds, but building fails with either:
Or:
Example cmake invocation: