libtorch-bin: modify passthru test to capture CMake misconfiguration
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
cmake_minimum_required(VERSION 3.0)
|
||||||
find_package(Torch REQUIRED)
|
find_package(Torch REQUIRED)
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TORCH_CXX_FLAGS}")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TORCH_CXX_FLAGS}")
|
||||||
add_executable(test test.cpp)
|
add_executable(test test.cpp)
|
||||||
|
|||||||
Reference in New Issue
Block a user