Skip to content

Commit

Permalink
troubleshooting cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
dhpollack committed Jan 14, 2020
1 parent c8c2ac3 commit 2db326d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/get_third_party.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ rm -Rf sentencepiece

echo "installing cpu-libtorch, if you want the CUDA version it's available at https://pytorch.org"
wget $LIBTORCHURI -O libtorch.zip
unzip libtorch.zip
unzip -qq libtorch.zip
rm libtorch.zip

echo "installing nlohmann json..."
Expand Down
2 changes: 1 addition & 1 deletion test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ include_directories(${PROJECT_SOURCE_DIR})

set(SOURCES test_squad_utils.cpp ../src/squad_utils.cpp)
add_executable(squad_utils-gtest ${SOURCES})
target_link_libraries(squad_utils-gtest gtest gtest_main)
target_link_libraries(squad_utils-gtest gtest gtest_main nlohmann_json::nlohmann_json)
gtest_discover_tests(squad_utils-gtest WORKING_DIRECTORY $<TARGET_FILE_DIR:squad_utils-gtest>)

#add_custom_command(TARGET squad_utils-gtest PRE_BUILD
Expand Down

0 comments on commit 2db326d

Please sign in to comment.