fix cmakelists
Some checks failed
CMake / ubuntu-latest - shared=OFF, pthread=OFF, posix=OFF (push) Failing after 18s
CMake / ubuntu-latest - shared=ON, pthread=OFF, posix=OFF (push) Failing after 18s
CMake / ubuntu-latest - shared=OFF, pthread=OFF, posix=ON (push) Failing after 13s
CMake / ubuntu-latest - shared=ON, pthread=OFF, posix=ON (push) Failing after 15s
CMake / ubuntu-latest - shared=OFF, pthread=ON, posix=ON (push) Failing after 12s
CMake / ubuntu-latest - shared=ON, pthread=ON, posix=ON (push) Failing after 9s

Signed-off-by: Slendi <slendi@socopon.com>
This commit is contained in:
2025-08-09 08:26:33 +03:00
parent b1e03148b7
commit 055f0bc2f5

View File

@@ -75,7 +75,7 @@ if(DCFG_BUILD_PROGRAMS)
get_filename_component(PROG_NAME ${PROG_SRC} NAME_WE)
add_executable(${PROG_NAME} ${PROG_SRC})
target_include_directories(${PROG_NAME} PRIVATE ${INCLUDE_DIR})
target_link_libraries(${PROG_NAME} PRIVATE ${PROJECT_NAME}_shared)
target_link_libraries(${PROG_NAME} PRIVATE ${PROJECT_NAME}_static)
if(DCFG_PTHREAD_SUPPORT)
target_link_libraries(${PROG_NAME} PRIVATE Threads::Threads)