commit | 449afdebec99a07d58ba82a37be0a25601935018 | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Thu Jun 04 16:06:49 2015 +0200 |
committer | Michal Vasko <mvasko@cesnet.cz> | Thu Jun 04 16:06:49 2015 +0200 |
tree | 12a0209a5c569b0ce965d8c403c74410102451b3 | |
parent | 8bc9ca08ff6298c1fdd7d96b16e0f5411473f6f0 [diff] |
tree printer: NEW: leaf, leaf-list type, choice print
libyang is YANG data modelling language parser and toolkit written (and providing API) in C.
$ cmake . $ make # make install
There are two build modes:
The Debug
mode is currently used as the default one. to switch to the Release
mode, enter at the command line:
$ cmake -D CMAKE_BUILD_TYPE:String="Release" .
Set CC variable:
$ CC=/usr/bin/clang cmake .
Note that, with CMake, if you want to change the compiler or its options after you already ran CMake, you need to clear its cache first. For your convenience, this action is available as cclean
target of the Makefile:
$ make cclean $ CC=gcc CFLAGS='-fstack-protector-strong -Wa,--noexecstack' cmake .