add compiler & cmake version check
This commit is contained in:
parent
48d7a32daa
commit
af775ddbb8
1 changed files with 11 additions and 6 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue