Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
GeoModelVisualization
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
GeoModelDev
GeoModelVisualization
Commits
e4f08f80
Commit
e4f08f80
authored
5 years ago
by
Joseph Boudreau
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of
ssh://gitlab.cern.ch:7999/GeoModelDev/GeoModelVisualization
parents
f87bd4a7
79882f4b
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#1603892
failed
5 years ago
Stage: deps-A
Stage: deps-B
Stage: build
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
GXClashPointSystems/CMakeLists.txt
+3
-5
3 additions, 5 deletions
GXClashPointSystems/CMakeLists.txt
cmake/SetupJSON.cmake
+1
-1
1 addition, 1 deletion
cmake/SetupJSON.cmake
with
4 additions
and
6 deletions
GXClashPointSystems/CMakeLists.txt
+
3
−
5
View file @
e4f08f80
...
...
@@ -69,12 +69,10 @@ if( GEOMODEL_USE_BUILTIN_JSON )
add_dependencies
(
GXClashPointSystems JSON
)
endif
()
message
(
STATUS
"dir:
${
nlohmann_json_INCLUDE_DIR
}
"
)
if
(
nlohmann_json_FOUND OR GEOMODEL_USE_BUILTIN_JSON
)
# we link to nlohmann_json only if we use a version of nlohmann_json installed through CMake;
# this is not needed if the single-header library is installed in a regular
# system include folder (e.g., '/usr/local/include')
# NOTE: Needs to be PUBLIC for the built-in nlohmann_json
if
(
nlohmann_json_FOUND OR GEOMODEL_USE_BUILTIN_JSON
)
target_link_libraries
(
GXClashPointSystems PUBLIC nlohmann_json::nlohmann_json
)
endif
()
...
...
This diff is collapsed.
Click to expand it.
cmake/SetupJSON.cmake
+
1
−
1
View file @
e4f08f80
...
...
@@ -19,7 +19,7 @@ if( GEOMODEL_USE_BUILTIN_JSON )
set
(
nlohmann_json_INCLUDE_DIR
"
${
CMAKE_BINARY_DIR
}${
CMAKE_FILES_DIRECTORY
}
/JSONInstall/
${
CMAKE_INSTALL_INCLUDEDIR
}
"
)
set
(
nlohmann_json_INCLUDE_DIRS
"
${
nlohmann_json_INCLUDE_DIR
}
"
)
message
(
STATUS
"Installing nlohmann_json in:
${
nlohmann_json_INCLUDE_DIR
}
"
)
message
(
STATUS
"Installing
the built-in '
nlohmann_json
'
in:
${
nlohmann_json_INCLUDE_DIR
}
"
)
# Create the include directory already, otherwise CMake refuses to
# create the imported target.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment