Skip to content

Commit

Permalink
Merge pull request #855 from theodelrieu/fix/cmake_include_directories
Browse files Browse the repository at this point in the history
cmake: use BUILD_INTERFACE/INSTALL_INTERFACE
  • Loading branch information
nlohmann authored Dec 6, 2017
2 parents 0e3a0b7 + 541ee62 commit fa76f2e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ add_library(${NLOHMANN_JSON_TARGET_NAME} INTERFACE)

target_include_directories(
${NLOHMANN_JSON_TARGET_NAME}
INTERFACE $<INSTALL_INTERFACE:include/>
INTERFACE
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/src>
$<INSTALL_INTERFACE:include>
)

## add debug view defintion file for msvc (natvis) [cmake <= 3.2.2 does not support export of source files]
Expand Down

0 comments on commit fa76f2e

Please sign in to comment.