More. static-on-linux
authorCarl Hetherington <cth@carlh.net>
Fri, 24 Apr 2020 19:16:59 +0000 (21:16 +0200)
committerCarl Hetherington <cth@carlh.net>
Fri, 24 Apr 2020 19:16:59 +0000 (21:16 +0200)
blockdev/CMakeLists.txt
src/CMakeLists.txt

index e79cbb4cd750e152759433a27741e02232f59a81..e45f134a7788af8db5aa6b3ad85c509053b66c28 100644 (file)
@@ -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()
+
 
index 3b82fcf6a7d646ab53de28cb7485dc228ad3dae9..527664a5b3e6d88b72174c8bf3eded006268da2a 100644 (file)
@@ -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()