From a60ac6f3ba2ce4c48c05fc2f9ed76ccbbbb837cf Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 24 Apr 2020 21:16:59 +0200 Subject: More. --- blockdev/CMakeLists.txt | 8 +++++++- src/CMakeLists.txt | 2 +- 2 files changed, 8 insertions(+), 2 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() + diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 3b82fcf..527664a 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -19,4 +19,4 @@ endif() if (DEFINED INSTALL_LIB) INSTALL(TARGETS lwext4 DESTINATION /usr/local/lib) INSTALL(DIRECTORY ${PROJECT_BINARY_DIR}/include/. DESTINATION /usr/local/include/lwext4) -endif() \ No newline at end of file +endif() -- cgit v1.2.3