Add actions
Some checks failed
CMake / ubuntu-latest - shared=OFF (push) Failing after 4s
CMake / ubuntu-latest - shared=ON (push) Failing after 4s

Signed-off-by: Slendi <slendi@socopon.com>
This commit is contained in:
2025-07-26 00:44:03 +03:00
parent ae8d2907fc
commit 8844317936
2 changed files with 37 additions and 4 deletions

View File

@@ -7,7 +7,6 @@ set(CMAKE_C_STANDARD_REQUIRED ON)
set(CMAKE_C_EXTENSIONS OFF)
option(DCFG_BUILD_SHARED "Build DCFG as a shared library" ON)
option(DCFG_BUILD_STATIC "Build DCFG as a static library" OFF)
option(DCFG_PTHREAD_SUPPORT "Enable pthreads support" ON)
option(DCFG_POSIX_SUPPORT "Enable POSIX support" ON)
@@ -31,9 +30,7 @@ if(DCFG_BUILD_SHARED)
set_target_properties(${PROJECT_NAME} PROPERTIES OUTPUT_NAME "dcfg")
install(TARGETS ${PROJECT_NAME} DESTINATION lib)
endif()
if(DCFG_BUILD_STATIC)
else()
add_library(${PROJECT_NAME}_static STATIC ${SRC_DIR}/dcfg.c)
target_include_directories(${PROJECT_NAME}_static PUBLIC ${INCLUDE_DIR})