Skip to content

Commit

Permalink
Update for ps-lite CMakeLists.txt refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
leezu committed Jan 24, 2020
1 parent e1779f4 commit d9ad61d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -770,10 +770,8 @@ endif()

if(USE_DIST_KVSTORE)
add_subdirectory("3rdparty/ps-lite")
list(APPEND pslite_LINKER_LIBS pslite protobuf zmq)
add_definitions(-DMXNET_USE_DIST_KVSTORE)
include_directories(SYSTEM ${pslite_INCLUDE_DIR})
list(APPEND mxnet_LINKER_LIBS ${pslite_LINKER_LIBS})
list(APPEND mxnet_LINKER_LIBS pslite)
endif()

function(BuildTVMOP)
Expand Down Expand Up @@ -821,7 +819,7 @@ if(MSVC)
target_link_libraries(mxnet PUBLIC dmlc)
endif()
else()
target_link_libraries(mxnet PUBLIC ${mxnet_LINKER_LIBS})
target_link_libraries(mxnet_static PUBLIC ${mxnet_LINKER_LIBS})
target_link_libraries(mxnet PUBLIC dmlc)
endif()

Expand All @@ -836,7 +834,6 @@ if(USE_OPENCV AND OpenCV_VERSION_MAJOR GREATER 2)
${mxnet_LINKER_LIBS}
${OpenCV_LIBS}
dmlc
${pslite_LINKER_LIBS}
)
else()
message(WARNING "OpenCV_VERSION_MAJOR: ${OpenCV_VERSION_MAJOR}, version 3 with imgcodecs \
Expand Down

0 comments on commit d9ad61d

Please sign in to comment.