Skip to content
This repository was archived by the owner on Apr 28, 2023. It is now read-only.

Commit 42d69ca

Browse files
Merge pull request #409 from facebookresearch/pr/without_cuda
do not build tc_caffe2_test_harness when WITH_CUDA=0 is set
2 parents 53e6185 + 2dcab95 commit 42d69ca

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/caffe2/CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
add_library(tc_caffe2_test_harness SHARED test_harness.cc)
2-
target_link_libraries(tc_caffe2_test_harness tc_c2)
3-
install(TARGETS tc_caffe2_test_harness DESTINATION lib)
4-
51
if (WITH_CUDA)
2+
add_library(tc_caffe2_test_harness SHARED test_harness.cc)
3+
target_link_libraries(tc_caffe2_test_harness tc_c2)
4+
install(TARGETS tc_caffe2_test_harness DESTINATION lib)
5+
66
add_subdirectory(cuda)
77
endif()

0 commit comments

Comments
 (0)