summaryrefslogtreecommitdiff
path: root/blockdev/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'blockdev/CMakeLists.txt')
-rw-r--r--blockdev/CMakeLists.txt8
1 files changed, 7 insertions, 1 deletions
diff --git a/blockdev/CMakeLists.txt b/blockdev/CMakeLists.txt
index e79cbb4..e45f134 100644
--- 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()
+