document why we are patching json.hpp

This commit is contained in:
Robert Maynard
2021-07-09 11:28:43 -04:00
parent 237363784a
commit 9cfb15be8b
2 changed files with 2 additions and 2 deletions

View File

@@ -45,9 +45,8 @@ CPMAddPackage(
URL https://github.com/nlohmann/json/releases/download/v3.9.1/include.zip
URL_HASH SHA256=6bea5877b1541d353bd77bdfbdb2696333ae5ed8f9e8cc22df657192218cad91
PATCH_COMMAND
# Work around compiler bug in nvcc 11.0, see NVIDIA/NVBench#18
${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/cmake/patches/nlohmann_json.hpp" "./include/nlohmann/json.hpp"
)
# Development branch:

View File

@@ -8761,6 +8761,7 @@ if no parse error occurred.
@since version 1.0.0
*/
// Work around compiler bug in nvcc 11.0, see NVIDIA/NVBench#18
#if defined(__NVCC__) && \
__cplusplus >= 201703L && \
__CUDACC_VER_MAJOR__ == 11 && \