Skip to content

Commit

Permalink
Merge pull request #1040 from ax3l/topic-debugViewMSVCcmakeMin
Browse files Browse the repository at this point in the history
CMake: 3.8+ is Sufficient
  • Loading branch information
nlohmann authored Apr 7, 2018
2 parents 495436a + e439a1a commit 83b1433
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ target_include_directories(
$<INSTALL_INTERFACE:include>
)

## add debug view defintion file for msvc (natvis) [cmake <= 3.2.2 does not support export of source files]
if (MSVC AND CMAKE_VERSION VERSION_GREATER "3.2.2")
## add debug view defintion file for msvc (natvis)
if (MSVC)
set(NLOHMANN_ADD_NATVIS TRUE)
set(NLOHMANN_NATVIS_FILE "nlohmann_json.natvis")
target_sources(
Expand All @@ -64,7 +64,7 @@ if (MSVC AND CMAKE_VERSION VERSION_GREATER "3.2.2")
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/${NLOHMANN_NATVIS_FILE}>
)
endif()

##
## TESTS
## create and configure the unit test target
Expand Down

0 comments on commit 83b1433

Please sign in to comment.