CMakeLists.txt: Stop forcing STATIC library

Distribution packagers might prefer dynstr as a shared object.
This commit is contained in:
Xavier Del Campo Romero 2023-10-16 01:16:32 +02:00
parent cc9eae6d01
commit c4979825b7
Signed by: xavi
GPG Key ID: 84FF3612A9BF43F2
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@
# limitations under the License.
cmake_minimum_required(VERSION 3.0)
project(dynstr C)
add_library(${PROJECT_NAME} STATIC "dynstr.c")
add_library(${PROJECT_NAME} "dynstr.c")
target_include_directories(${PROJECT_NAME} PUBLIC "include")
install(TARGETS ${PROJECT_NAME})
install(DIRECTORY include/ TYPE INCLUDE)