Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
json
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
json
Commits
b2d21067
Unverified
Commit
b2d21067
authored
Jul 16, 2021
by
Niels Lohmann
Committed by
GitHub
Jul 16, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2762 from jpl-mac/no.tidy.warnings.dev
Add a cmake option to use SYSTEM in target_include_directories
parents
f907f950
afbb84b2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
CMakeLists.txt
CMakeLists.txt
+6
-1
No files found.
CMakeLists.txt
View file @
b2d21067
...
...
@@ -36,6 +36,7 @@ option(JSON_MultipleHeaders "Use non-amalgamated version of the library." OFF)
option
(
JSON_ImplicitConversions
"Enable implicit conversions."
ON
)
option
(
JSON_Diagnostics
"Enable better diagnostic messages."
OFF
)
option
(
JSON_CI
"Enable CI build targets."
OFF
)
option
(
JSON_SystemInclude
"Include as system headers (skip for clang-tidy)"
OFF
)
if
(
JSON_CI
)
include
(
cmake/ci.cmake
)
...
...
@@ -73,6 +74,10 @@ if (JSON_Diagnostics)
message
(
STATUS
"Diagnostics enabled"
)
endif
()
if
(
JSON_SystemInclude
)
set
(
NLOHMANN_JSON_SYSTEM_INCLUDE
"SYSTEM"
)
endif
()
##
## TARGET
## create target and add include path
...
...
@@ -94,7 +99,7 @@ target_compile_definitions(
target_include_directories
(
${
NLOHMANN_JSON_TARGET_NAME
}
INTERFACE
${
NLOHMANN_JSON_SYSTEM_INCLUDE
}
INTERFACE
$<BUILD_INTERFACE:
${
NLOHMANN_JSON_INCLUDE_BUILD_DIR
}
>
$<INSTALL_INTERFACE:include>
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment