Unverified Commit fa76f2ef authored by Niels Lohmann's avatar Niels Lohmann Committed by GitHub

Merge pull request #855 from theodelrieu/fix/cmake_include_directories

cmake: use BUILD_INTERFACE/INSTALL_INTERFACE
parents 0e3a0b73 541ee62a
......@@ -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]
......
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