From af775ddbb804a2c1200ca86e882e08bc1738b75e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20M=C3=B6ller?= Date: Tue, 28 Nov 2017 23:43:39 +0100 Subject: [PATCH] add compiler & cmake version check --- CMakeLists.txt | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index cc67e5318..33ca38b09 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