Skip to content
Snippets Groups Projects
Verified Commit 6a5ea517 authored by Timm Fitschen's avatar Timm Fitschen
Browse files

Merge branch 'dev' into f-cpp-to-string

parents 2bd13bb3 9f94d90d
No related branches found
No related tags found
1 merge request!25F cpp to string
Pipeline #13957 passed
Pipeline: caosdb-cppinttest

#13959

    ......@@ -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
    ......@@ -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
    ......
    ......@@ -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/)
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment