Skip to content
This repository was archived by the owner on May 9, 2024. It is now read-only.

PRing the fixes for gcc-12 separately #153

Merged
merged 4 commits into from
Jan 12, 2023
Merged

PRing the fixes for gcc-12 separately #153

merged 4 commits into from
Jan 12, 2023

Conversation

alexbaden
Copy link
Contributor

I am still struggling with conda+cuda issues, so for now PRing these separately.

@@ -579,6 +579,15 @@ endif()
# RapidJSON
include_directories(ThirdParty/rapidjson)
add_definitions(-DRAPIDJSON_HAS_STDSTRING)
if(NOT MSVC)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From the comment, it looks like the fix is required for Windows but it is enabled for non-Windows builds. Also, the top level CMakeLists.txt directly includes rapidjson and therefore should require the same fix.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe the fix is required for non-Windows builds -- the vcpkg version on Windows is too old for the fix to apply there as of this writing (which may have been some time ago). But, msvc doesn't seem to have an issue with the iterator format used in rapidjson -- perhaps because they are not enforcing all parts of c++17 yet?

@alexbaden alexbaden merged commit e6cdc22 into main Jan 12, 2023
@alexbaden alexbaden deleted the alex/gcc12_fixes branch January 12, 2023 16:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants