Skip to content

CMake error: out-of-tree subdirectory #34

@mdpiper

Description

@mdpiper

When building coretran, I got the following CMake error during configuration:

CMake Error at CMakeLists.txt:81 (add_subdirectory):
  add_subdirectory not given a binary directory but the given source
  directory
  "/home/conda/feedstock_root/build_artifacts/coretran_1772699619341/work/test"
  is not a subdirectory of
  "/home/conda/feedstock_root/build_artifacts/coretran_1772699619341/work/src".
  When specifying an out-of-tree source a binary directory must be explicitly
  specified.

This halts the build process.

The above happened during a cloud build, but I can reproduce it locally. I tried stepping back the CMake version from 4.* to 3.*, but I got the same flavor of error.

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