commit | 61cd556adcfda4e1ab9f414198cf9178498aed56 | [log] [tgz] |
---|---|---|
author | Radek Krejci <rkrejci@cesnet.cz> | Mon Oct 05 14:06:34 2015 +0200 |
committer | Radek Krejci <rkrejci@cesnet.cz> | Mon Oct 05 14:06:34 2015 +0200 |
tree | 636d9aba277471e459bec9a46555a1ddcbe0d402 | |
parent | 800a079fa08bb19ec5a7a1c2671b010b995cb5c4 [diff] |
tests CHANGE make tests enabled only in Debug build mode tests requires additional dependency (cmocka) so disable them in the Release build mode to simplify building package in this case. Debug build mode has tests enabled so it requires cmocka to be installed.
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 .