Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-cpplib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
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
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-cpplib
Commits
f85d05ed
Commit
f85d05ed
authored
3 years ago
by
Florian Spreckelsen
Browse files
Options
Downloads
Patches
Plain Diff
DOC: Add troubleshooting hint for manual cpp standard
parent
8ef5aeb0
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#14607
passed
3 years ago
Stage: info
Stage: setup
Stage: test
Stage: deploy
Pipeline: caosdb-cppinttest
#14608
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/README_SETUP.md
+10
-3
10 additions, 3 deletions
doc/README_SETUP.md
with
10 additions
and
3 deletions
doc/README_SETUP.md
+
10
−
3
View file @
f85d05ed
...
...
@@ -74,6 +74,13 @@ dependencies.
Depending on the clang version it might be necessary to use additionally the following flag:
`-DCMAKE_CXX_FLAGS="-Wno-unused-parameter"`
#### conan uses outdated cppstd during install
If you experience compiler errors during a
`conan install`
process due
to, e.g.,
`std::string_view`
being unavailable, try specifying the cpp
standard manually by
`conan install .. [other options] -s
"compiler.cppstd=17"`
.
## Unit Tests
### Build
...
...
@@ -83,10 +90,10 @@ For the tests there is a slightly different setup required (with option `-D CMAK
1.
`mkdir build && cd build/`
2.
`conan install .. -s "compiler.libcxx=libstdc++11"`
3.
`cmake -B . -D CMAKE_BUILD_TYPE=Debug ..`
*
If your clang-format version is too old, formatting, linting etc. can be skipped:
`cmake -B . -D CMAKE_BUILD_TYPE=Debug -D SKIP_LINTING=ON ..`
*
If your clang-format version is too old, formatting, linting etc. can be skipped:
`cmake -B . -D CMAKE_BUILD_TYPE=Debug -D SKIP_LINTING=ON ..`
*
Depending on the clang version it might be necessary to also add
`-DCMAKE_CXX_FLAGS="-Wno-unused-parameter"`
`-DCMAKE_CXX_FLAGS="-Wno-unused-parameter"`
5.
`cmake --build .`
### Run
...
...
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