Commit cc8614abee1c08c31cecd3f2c5ad4ffef76c2f3a

Adrian Antonana 2022-02-19T12:18:20

cmake: define BUILD_SHARED_LIBS option... in addition to be able to pass it on cmake invokation tools like ccmake et al. will show it as a configurable option

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/CMakeLists.txt b/CMakeLists.txt
index de68266..33e923e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -14,6 +14,11 @@ include(CMakePackageConfigHelpers)
 include(sources.cmake)
 
 #-----------------------------------------------------------------------------
+# Options
+#-----------------------------------------------------------------------------
+option(BUILD_SHARED_LIBS "Build shared library" FALSE)
+
+#-----------------------------------------------------------------------------
 # library target
 #-----------------------------------------------------------------------------
 add_library(${PROJECT_NAME}