libtorch-bin: modify passthru test to capture CMake misconfiguration

This commit is contained in:
Daniël de Kok 2020-11-08 10:55:53 +01:00
parent e8721af065
commit 2802a021e3

View File

@ -1,3 +1,4 @@
cmake_minimum_required(VERSION 3.0)
find_package(Torch REQUIRED)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TORCH_CXX_FLAGS}")
add_executable(test test.cpp)