mirror of
https://github.com/eclipse/upm.git
synced 2025-03-15 04:57:30 +03:00
building.md: update cmake instructions
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
parent
44b1ff7f75
commit
4bf30df933
@ -15,20 +15,27 @@ cmake ..
|
|||||||
make
|
make
|
||||||
~~~~~~~~~~~~~
|
~~~~~~~~~~~~~
|
||||||
|
|
||||||
Our cmake configure has a number of options, `cmake -i` will ask you all sorts
|
Our cmake configure has a number of options, cmake-gui or ccmake can show you
|
||||||
of interesting questions, you can disable swig modules, build documentation
|
all the options. The interesting ones are detailed below:
|
||||||
etc...
|
|
||||||
|
|
||||||
Few recommended options:
|
|
||||||
Changing install path from /usr/local to /usr
|
Changing install path from /usr/local to /usr
|
||||||
-DCMAKE_INSTALL_PREFIX:PATH=/usr
|
-DCMAKE_INSTALL_PREFIX:PATH=/usr
|
||||||
|
|
||||||
Building debug build:
|
Building debug build:
|
||||||
-DCMAKE_BUILD_TYPE=DEBUG
|
-DCMAKE_BUILD_TYPE=DEBUG
|
||||||
|
|
||||||
Using clang instead of gcc:
|
Using clang instead of gcc:
|
||||||
-DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang
|
-DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang
|
||||||
|
|
||||||
|
Building with an older version of swig (swig 2.0+) requires the disabling of javascript:
|
||||||
|
-DBUILDSWIGNODE=OFF
|
||||||
|
|
||||||
|
Disabling python module building
|
||||||
|
-DBUILDSWIGPYTHON=OFF
|
||||||
|
|
||||||
|
Building doxygen doc
|
||||||
|
-BUILDDOC=ON
|
||||||
|
|
||||||
Often developers are only interested in building one module or even just the
|
Often developers are only interested in building one module or even just the
|
||||||
python/node module to do some quick testing using scripting. In order to do
|
python/node module to do some quick testing using scripting. In order to do
|
||||||
this you need to use the target name for the python or node module you want to
|
this you need to use the target name for the python or node module you want to
|
||||||
|
Loading…
x
Reference in New Issue
Block a user