]> granicus.if.org Git - check/commitdiff
Add comments about library creation
authorMikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Sat, 19 Oct 2019 22:57:38 +0000 (00:57 +0200)
committerMikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Sat, 19 Oct 2019 22:57:38 +0000 (00:57 +0200)
Why we create both static and shared type of library?

Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
src/CMakeLists.txt

index 437ea2a6e1e7ed4292e86745b3e91fdfa3f0464a..7f99cab684d8e60ba16f75545e3c27227fc3bfd8 100644 (file)
@@ -45,6 +45,11 @@ set(HEADERS
 
 configure_file(check.h.in check.h @ONLY)
 
+# To maintain compatibility with the Autotools installation
+# we specifically create both shared and static libraries
+# as that is what Autotools script has been doing.
+# Normally CMake would create the system's native default library type.
+
 add_library(check STATIC ${SOURCES} ${HEADERS})
 
 # We would like to create an OBJECT library but currently they are