diff --git a/CMakeLists.txt b/CMakeLists.txt index cc67e531..33ca38b0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -36,12 +36,17 @@ target_include_directories( INTERFACE $ ) -target_sources( - ${NLOHMANN_JSON_TARGET_NAME} - INTERFACE - $ - $ -) +## +## add debug view defintion file for msvc +## +if (MSVC AND CMAKE_VERSION VERSION_GREATER "3.2.2") + target_sources( + ${NLOHMANN_JSON_TARGET_NAME} + INTERFACE + $ + $ + ) +endif() ## ## TESTS