projects
/
lwext4.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Build static on Linux.
[lwext4.git]
/
blockdev
/
CMakeLists.txt
diff --git
a/blockdev/CMakeLists.txt
b/blockdev/CMakeLists.txt
index e79cbb4cd750e152759433a27741e02232f59a81..e45f134a7788af8db5aa6b3ad85c509053b66c28 100644
(file)
--- a/
blockdev/CMakeLists.txt
+++ b/
blockdev/CMakeLists.txt
@@
-9,5
+9,11
@@
else()
endif()
aux_source_directory(. BLOCKDEV_SRC)
-add_library(blockdev SHARED ${BLOCKDEV_SRC})
+
+if(LWEXT4_BUILD_SHARED_LIB)
+ add_library(blockdev SHARED ${BLOCKDEV_SRC})
+else()
+ add_library(blockdev STATIC ${BLOCKDEV_SRC})
+endif()
+