1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

cmake: link tools against pthread imported target

This commit is contained in:
Steffen Vogel 2018-06-30 10:41:17 +02:00
parent ab2b7d95cf
commit 3120256dc4

View file

@ -29,10 +29,10 @@ endif()
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
add_executable(rmshm rmshm.c)
target_link_libraries(rmshm PUBLIC pthread rt)
target_link_libraries(rmshm PUBLIC Threads::Threads rt)
add_executable(rmsem rmsem.c)
target_link_libraries(rmsem PUBLIC pthread rt)
target_link_libraries(rmsem PUBLIC Threads::Threads rt)
list(APPEND TOOLS rmsem rmshm)
endif()