diff options
author | Nikolay Dimitrov <picmaster@mail.bg> | 2015-06-06 18:04:19 +0300 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-06-14 16:25:38 +0300 |
commit | 4c94515cc8b2ae23bb9c2611e603e09171502531 (patch) | |
tree | 9f24ccf578c05b125024e5e5a4175fa0e46ed06a /CMakeLists.txt | |
parent | 8964d77f806291bfbbad6a2e2b530c1838dec29c (diff) |
libubox: cmake: Add BUILD_EXAMPLES option
Add ability to skip building the examples. The default value is ON to follow
the original cmake behavior.
Signed-off-by: Nikolay Dimitrov <picmaster@mail.bg>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 38709ec..ecca3e9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,6 +6,7 @@ PROJECT(ubox C) ADD_DEFINITIONS(-Os -Wall -Werror --std=gnu99 -g3 -Wmissing-declarations) OPTION(BUILD_LUA "build Lua plugin" ON) +OPTION(BUILD_EXAMPLES "build examples" ON) INCLUDE(FindPkgConfig) PKG_SEARCH_MODULE(JSONC json-c) |