You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@celix.apache.org by pn...@apache.org on 2023/09/10 12:18:25 UTC
[celix] 04/04: #99: Add build with Ninja to conan build documentation
This is an automated email from the ASF dual-hosted git repository.
pnoltes pushed a commit to branch feature/99-update-documentation
in repository https://gitbox.apache.org/repos/asf/celix.git
commit 5851acf66c9a5cef9111bdef8173c1e193ba8018
Author: Pepijn Noltes <pe...@gmail.com>
AuthorDate: Sun Sep 10 14:18:08 2023 +0200
#99: Add build with Ninja to conan build documentation
---
documents/building/README.md | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/documents/building/README.md b/documents/building/README.md
index 1b5e2da5..c011992d 100644
--- a/documents/building/README.md
+++ b/documents/building/README.md
@@ -61,7 +61,8 @@ sudo apt-get install -yq --no-install-recommends \
git \
default-jdk \
python3 \
- python3-pip
+ python3-pip \
+ ninja-build
#The cmake version for Ubuntu 20 is older than 3.14,
#use snap to install the latest cmake version
@@ -79,7 +80,9 @@ conan profile detect
Create Apache Celix package - and build the dependencies - in the Conan cache:
```bash
cd <celix_source_dir>
-conan create . --output-folder build --build missing -o build_all=True
+conan create . --build missing -o build_all=True
+#Optionally build with CMake->Ninja, instead of CMake->Make. Note this includes building dependencies with Ninja.
+conan create . --build missing -o build_all=True -c tools.cmake.cmaketoolchain:generator=Ninja
```
Note installing Apache Celix is not required when using Conan, because Conan will install the Apache Celix package