Skip to content

Commit

Permalink
Fix target_link_libraries in CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
chazeon committed Apr 7, 2024
1 parent 8c8a8c2 commit 16ba7a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/api_cc/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ target_link_libraries(runUnitTests_cc GTest::gtest_main ${LIB_DEEPMD_CC}
if(UNIX AND NOT APPLE)
find_library(RT_LIBRARY rt)
if(RT_LIBRARY)
target_link_libraries(runUnitTests_cc PRIVATE ${RT_LIBRARY})
target_link_libraries(runUnitTests_cc ${RT_LIBRARY})
endif()
endif()

Expand Down

0 comments on commit 16ba7a8

Please sign in to comment.