Skip to content

Missing headers after installation #310

@GericoVi

Description

@GericoVi

Relevant to PR #294, the new headers need to be added in cmake. Can be fixed similar to rusty1s/pytorch_sparse#231 with:

diff --git a/CMakeLists.txt b/CMakeLists.txt
index b180c46..4c7f9a0 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -15,7 +15,7 @@ endif()
 find_package(Python3 COMPONENTS Development)
 find_package(Torch REQUIRED)

-file(GLOB HEADERS csrc/scatter.h)
+file(GLOB HEADERS csrc/*.h)
 file(GLOB OPERATOR_SOURCES csrc/cpu/*.h csrc/cpu/*.cpp csrc/*.cpp)
 if(WITH_CUDA)
   file(GLOB OPERATOR_SOURCES ${OPERATOR_SOURCES} csrc/cuda/*.h csrc/cuda/*.cu)

Necessary when building C++ apps dependent on torchscatter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions