diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-04-24 21:12:10 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-04-24 21:17:18 +0200 |
| commit | ef0a4fdf9b85692e03a0f13ac4439c37a8b6d4aa (patch) | |
| tree | 51b13bf42083d5a66748cdd2cf8b0ae06ad01264 /blockdev | |
| parent | d1e03c7453f4f168c6f0bb567427b0e5f049ba26 (diff) | |
Build static on Linux.
Diffstat (limited to 'blockdev')
| -rw-r--r-- | blockdev/CMakeLists.txt | 8 |
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() + |
