Skip to content

Commit

Permalink
update makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
taoleicn committed May 13, 2021
1 parent ed64427 commit d6daad6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sru/csrc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ add_executable(example_app main_test_cpp.cpp)
target_link_libraries(example_app "${TORCH_LIBRARIES}")
if (UNIX AND NOT APPLE)
target_link_libraries(example_app -Wl,--no-as-needed sru_cpu)
target_link_libraries(example_app -Wl,--no-as-needed sru_cuda)
else()
target_link_libraries(example_app -Wl,-all_load sru_cpu)
target_link_libraries(example_app -Wl,-all_load sru_cuda)
endif()
target_compile_features(example_app PRIVATE cxx_std_14)

0 comments on commit d6daad6

Please sign in to comment.