From baa592b215804927e28638f6a7f3318cbc411d49 Mon Sep 17 00:00:00 2001 From: vcarpani <38493091+vcarpani@users.noreply.github.com> Date: Fri, 21 Aug 2020 14:15:51 +0200 Subject: [PATCH] Use include_directories. (#2587) --- CMakeLists.txt | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 956a2ea4d08..b359d58b2c1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -34,10 +34,7 @@ target_link_libraries(${PROJECT_NAME} PRIVATE ${TORCH_LIBRARIES} ${PNG_LIBRARY} # target_link_libraries(${PROJECT_NAME} PRIVATE ${PNG_LIBRARY} Python3::Python) set_target_properties(${PROJECT_NAME} PROPERTIES EXPORT_NAME TorchVision) -target_include_directories(${PROJECT_NAME} INTERFACE - $ - $) - +include_directories(torchvision/csrc) include(GNUInstallDirs) include(CMakePackageConfigHelpers)