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
6a5ea517
Verified
Commit
6a5ea517
authored
3 years ago
by
Timm Fitschen
Browse files
Options
Downloads
Plain Diff
Merge branch 'dev' into f-cpp-to-string
parents
2bd13bb3
9f94d90d
No related branches found
No related tags found
1 merge request
!25
F cpp to string
Pipeline
#13957
passed
3 years ago
Stage: info
Stage: setup
Stage: test
Stage: deploy
Pipeline: caosdb-cppinttest
#13959
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitignore
+9
-0
9 additions, 0 deletions
.gitignore
Makefile
+21
-2
21 additions, 2 deletions
Makefile
doc/README_SETUP.md
+5
-0
5 additions, 0 deletions
doc/README_SETUP.md
with
35 additions
and
2 deletions
.gitignore
+
9
−
0
View file @
6a5ea517
...
...
@@ -145,3 +145,12 @@ flycheck_*.el
# Python/Sphinx
env/
# Conan build files
build_tools
conan.lock
conan_imports_manifest.txt
conanbuildinfo.cmake
conanbuildinfo.txt
conaninfo.txt
graph_info.json
This diff is collapsed.
Click to expand it.
Makefile
+
21
−
2
View file @
6a5ea517
...
...
@@ -23,6 +23,23 @@
CLANG_FORMAT
?=
clang-format-11
CONAN_SETTINGS
=
"compiler.libcxx=libstdc++11"
# OS specific handling, with code by Ken Jackson and oHo,
# from https://stackoverflow.com/a/52062069/232888 and
# https://stackoverflow.com/a/14777895/232888
ifeq
'$(findstring ;,$(PATH))' ';'
DETECTED_OS
:=
Windows
else
DETECTED_OS
:=
$(
shell
uname
2>/dev/null
||
echo
Unknown
)
DETECTED_OS
:=
$(
patsubst CYGWIN%,Cygwin,
$(
DETECTED_OS
))
DETECTED_OS
:=
$(
patsubst MSYS%,MSYS,
$(
DETECTED_OS
))
DETECTED_OS
:=
$(
patsubst MINGW%,MSYS,
$(
DETECTED_OS
))
endif
ifeq
($(DETECTED_OS),Darwin)
# Test if we are on MacOS
CONAN_SETTINGS
:=
"cppstd=11"
endif
.PHONY
:
help
help
:
...
...
@@ -36,11 +53,13 @@ style:
.PHONY
:
style
conan-install
:
conan
install
.
-s
"compiler.libcxx=libstdc++11"
conan
install
.
-s
$(
CONAN_SETTINGS
)
||
\
(
echo
"'conan install' failed, trying to build from sources..."
;
\
conan
install
.
-s
$(
CONAN_SETTINGS
)
--build
=
missing
)
.PHONY
:
conan-install
conan-create
:
conan create
.
-s
"compiler.libcxx=libstdc++11"
conan create
.
-s
$(
CONAN_SETTINGS
)
.PHONY
:
conan-create
conan
:
conan-install conan-create
...
...
This diff is collapsed.
Click to expand it.
doc/README_SETUP.md
+
5
−
0
View file @
6a5ea517
...
...
@@ -34,6 +34,11 @@ have to add `build/lib/` (or, alternatively after installation,
`CMAKE_INSTALL_PREFIX/lib`
) to your
`DYLD_LIBRARY_PATH`
environmental
variable.
#### Problems and solutions ####
-
Make sure that your conan version supports your XCode version. A typical symptom of version
mismatch is for example conan complaining about incompatible
`compiler.version`
settings.
### How to build on Windows
We use
[
Visual Studio 2019
](
https://visualstudio.microsoft.com/de/vs/features/cplusplus/
)
...
...
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