-
-
Notifications
You must be signed in to change notification settings - Fork 7.1k
chore(cmake): natvis building option #4849
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
base: develop
Are you sure you want to change the base?
Conversation
Signed-off-by: Eli <tape-infix.3m@icloud.com>
CMakeLists.txt
Outdated
@@ -208,7 +209,7 @@ if(JSON_Install) | |||
FILES ${NLOHMANN_JSON_CMAKE_PROJECT_CONFIG_FILE} ${NLOHMANN_JSON_CMAKE_VERSION_CONFIG_FILE} | |||
DESTINATION ${NLOHMANN_JSON_CONFIG_INSTALL_DIR} | |||
) | |||
if (NLOHMANN_ADD_NATVIS) | |||
if (NLOHMANN_ADD_NATVIS AND JSON_BuildNatvis) |
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.
Is this part needed? NLOHMANN_ADD_NATVIS
will already not be defined if JSON_BuildNatvis
is false.
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.
yea your right its kinda redundant
Signed-off-by: Eli <78963198+niceEli@users.noreply.github.com>
This pull request has been marked as stale because it has had no activity for 30 days. While we won’t close it automatically, we encourage you to update or comment if it is still relevant. Keeping pull requests active and up-to-date helps us review and merge changes more efficiently. Thank you for your contributions! |
Allow a CMake option to allow choosing whether or not to build the .natvis file, there is no issue for this but it caused some issues with me so I fixed it.
The CMake option
JSON_BuildNatvis
beingON
orOFF
controls its build, it will still not build if MSVC is notON
.This wont break anyones projects, but if people want to optionally not build the natvis file then they can.
make amalgamate
.Read the Contribution Guidelines for detailed information.