Skip to content

Commit 138ee75

Browse files
lukeyeagersoumith
authored andcommitted
Fix for target_link_libraries on CMake 2.8 (pytorch#581)
1 parent 0048f22 commit 138ee75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torch/lib/THPP/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ if(NOT ${CMAKE_VERSION} VERSION_LESS "3.1")
5454
SET_PROPERTY(TARGET THPP PROPERTY CXX_STANDARD 11)
5555
endif(NOT ${CMAKE_VERSION} VERSION_LESS "3.1")
5656

57-
TARGET_LINK_LIBRARIES(THPP PRIVATE ${TH_LIBRARIES})
57+
TARGET_LINK_LIBRARIES(THPP LINK_PRIVATE ${TH_LIBRARIES})
5858

5959
INSTALL(TARGETS THPP
6060
RUNTIME DESTINATION "${THPP_INSTALL_BIN_DIR}"

0 commit comments

Comments
 (0)