diff options
| author | ngkaho1234 <ngkaho1234@gmail.com> | 2016-01-23 03:28:20 +0000 |
|---|---|---|
| committer | ngkaho1234 <ngkaho1234@gmail.com> | 2016-01-23 05:48:11 +0000 |
| commit | e1bbe336d1736703a6b1565cfa5565fb276643a1 (patch) | |
| tree | 1e98d91cbc320af754fea1c15de028eec9853197 /CMakeLists.txt | |
| parent | 2df08d93f8dda03f5cf3bb9c6928626540b9ef32 (diff) | |
Add 'lib_only' build target.
Under this target, only a basic library will be built.
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 33bdb23..b226830 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -27,6 +27,12 @@ elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL msp430g2210) add_definitions(-DCONFIG_DEBUG_PRINTF=0) add_definitions(-DCONFIG_DEBUG_ASSERT=0) #... +elseif(LIB_ONLY) + add_definitions(-DCONFIG_DEBUG_PRINTF=0) + add_definitions(-DCONFIG_DEBUG_ASSERT=0) + add_definitions(-DCONFIG_HAVE_OWN_OFLAGS=1) + add_definitions(-DCONFIG_HAVE_OWN_ERRNO=1) + add_definitions(-DCONFIG_BLOCK_DEV_CACHE_SIZE=16) else() #Generic example target set(BLOCKDEV_TYPE linux) |
