-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Homebrew on OSX doesn't install cmake config file #1576
Comments
I also have this issue, I also tried using the |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This might be totally unrelated (since the package seems to get downloaded) but can you instead use the following command to install (note the dash instead of underscore in the name of package):
|
Using dash instead of underscore fixed it. And I see now that the docs have a dash, so it is my mistake. I'm curious why brew accepts "brew install nlohmann_json" |
@jambolo: The mistake was in the documentation that was fixed a while ago (#1620). I wasn't aware of your issue so sorry for not informing you.
Yeah, it totally acts as the package is found and even successfully installed. That's very misleading. BTW, are you John Bolton, the adviser to US president? If so, please don't attack us Iranians :-) |
In short, CMake find_package() fails for me, presumably because the Homebrew on OSX installation oh nlohmamm_json does not install the necessary CMake config file. I don't use Homebrew or OSX much, so I'm not 100% sure of what might be wrong, but I currently use several other packages installed with Homebrew successfully. Previously, I used nlohmann_json as a submodule, but switching to find_package() now leads to this problem.
I ran the commands in the readme:
Here is output from Homebrew:
Here is the contents of /usr/local/opt/nlohmann_json:
In other installations, there is usually a cmake folder with a CMake configuation script, but there is none here.
INSTALL_RECEIPT.json, if that helps:
My CMakeLists.txt:
The CMake configuration error:
The text was updated successfully, but these errors were encountered: