Skip to content

Commit

Permalink
Move target_link_libraries to the correct line
Browse files Browse the repository at this point in the history
  • Loading branch information
cvonelm committed Apr 10, 2024
1 parent 976d1ad commit eb74f34
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,6 @@ endif()
if(NOT SHM_OPEN_FOUND)
if(SHM_OPEN_FOUND_WITH_RT)
target_link_libraries(lo2s PRIVATE rt)
target_link_libraries(lo2s-injection PRIVATE rt)
else()
message(SEND_ERROR "Could not find the function shm_open(), but it is required.")
endif()
Expand Down Expand Up @@ -325,6 +324,10 @@ if(USE_CUPTI)
target_link_libraries(lo2s_injection PRIVATE CUDA::cupti)
endif()

if(SHM_OPEN_FOUND_WITH_RT)
target_link_libraries(lo2s_injection PRIVATE rt)
else()

if(CUDAToolkit_FOUND)
target_compile_definitions(lo2s PUBLIC HAVE_CUDA)
install(TARGETS lo2s_injection LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
Expand Down

0 comments on commit eb74f34

Please sign in to comment.