You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The reason will be displayed to describe this comment to others. Learn more.
This seems to break "Export package to allow builds without installing":
CMake Error at C:/Users/ericu/source/repos/json/build/nlohmann_jsonConfig.cmake:30 (add_library):
add_library cannot create ALIAS target "nlohmann_json" because target
"nlohmann_json::nlohmann_json" is imported but not globally visible.
Call Stack (most recent call first):
CMakeLists.txt:9 (find_package)
Steps (windows):
Create the required registry entries by Configuring this project;
Add find_package(nlohmann_json REQUIRED 3.2.0) to a downstream CMakeLists
Configure downstream.
Error as above.
Removing this commit allowed builds normally. Since I'm not totally familiar with CMake yet it may be something else.
PS. Colleague on Harman DAI project too :) Great work on the library.
3b1a5ca
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems to break "Export package to allow builds without installing":
Steps (windows):
find_package(nlohmann_json REQUIRED 3.2.0)
to a downstream CMakeListsRemoving this commit allowed builds normally. Since I'm not totally familiar with CMake yet it may be something else.
PS. Colleague on Harman DAI project too :) Great work on the library.
3b1a5ca
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ericu65 This should be fixed now by merging #1260.
3b1a5ca
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Confirmed fixed. Thanks.