Commit af775ddb authored by Matthias Möller's avatar Matthias Möller

add compiler & cmake version check

parent 48d7a32d
...@@ -36,12 +36,17 @@ target_include_directories( ...@@ -36,12 +36,17 @@ target_include_directories(
INTERFACE $<INSTALL_INTERFACE:include/> INTERFACE $<INSTALL_INTERFACE:include/>
) )
target_sources( ##
${NLOHMANN_JSON_TARGET_NAME} ## add debug view defintion file for msvc
INTERFACE ##
$<INSTALL_INTERFACE:include/json.natvis> if (MSVC AND CMAKE_VERSION VERSION_GREATER "3.2.2")
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/${NLOHMANN_JSON_SOURCE_DIR}/json.natvis> target_sources(
) ${NLOHMANN_JSON_TARGET_NAME}
INTERFACE
$<INSTALL_INTERFACE:include/json.natvis>
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/${NLOHMANN_JSON_SOURCE_DIR}/json.natvis>
)
endif()
## ##
## TESTS ## TESTS
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment