--- CMakeLists.txt.orig 2022-09-20 01:47:58 UTC +++ CMakeLists.txt @@ -96,7 +96,7 @@ list(REMOVE_ITEM ABC_SRC ${ABC_MAIN_SRC}) set(ABC_MAIN_SRC src/base/main/main.c) list(REMOVE_ITEM ABC_SRC ${ABC_MAIN_SRC}) -add_library(libabc EXCLUDE_FROM_ALL ${ABC_SRC}) +add_library(libabc EXCLUDE_FROM_ALL SHARED ${ABC_SRC}) abc_properties(libabc PUBLIC) set_property(TARGET libabc PROPERTY OUTPUT_NAME abc) @@ -104,7 +104,7 @@ abc_properties(abc PRIVATE) target_link_libraries(abc PRIVATE libabc) abc_properties(abc PRIVATE) -add_library(libabc-pic EXCLUDE_FROM_ALL ${ABC_SRC}) +add_library(libabc-pic EXCLUDE_FROM_ALL SHARED ${ABC_SRC}) abc_properties(libabc-pic PUBLIC) set_property(TARGET libabc-pic PROPERTY POSITION_INDEPENDENT_CODE ON) set_property(TARGET libabc-pic PROPERTY OUTPUT_NAME abc-pic)