Skip to content

cmake: Target "zlibstatic" INTERFACE_INCLUDE_DIRECTORIES property contains path issue #915

@hsdk123

Description

@hsdk123

Hi, I use fetchcontent to build zlib and have recently started getting cmake configuration errors like:

CMake Error in out/build/windows-release/_deps/minizip-src/third-party/zlib/CMakeLists.txt:
  Target "zlibstatic" INTERFACE_INCLUDE_DIRECTORIES property contains path:

    "C:/Users/daego/Desktop/Projects/Light.vn-core/core/out/build/windows-release/_deps/zlib-build"

  which is prefixed in the build directory.


CMake Error in out/build/windows-release/_deps/minizip-src/third-party/zlib/CMakeLists.txt:
  Target "zlibstatic" INTERFACE_INCLUDE_DIRECTORIES property contains path:

    "C:/Users/daego/Desktop/Projects/Light.vn-core/core/out/build/windows-release/_deps/zlib-build"

  which is prefixed in the build directory.Target "zlibstatic"
  INTERFACE_INCLUDE_DIRECTORIES property contains path:

    "C:/Users/daego/Desktop/Projects/Light.vn-core/core/out/build/windows-release/_deps/zlib-build"

  which is prefixed in the source directory.


CMake Error in out/build/windows-release/_deps/minizip-src/third-party/zlib/CMakeLists.txt:
  Target "zlibstatic" INTERFACE_INCLUDE_DIRECTORIES property contains path:

    "C:/Users/daego/Desktop/Projects/Light.vn-core/core/out/build/windows-release/_deps/minizip-src/third-party/zlib"

  which is prefixed in the build directory.


CMake Error in out/build/windows-release/_deps/minizip-src/third-party/zlib/CMakeLists.txt:
  Target "zlibstatic" INTERFACE_INCLUDE_DIRECTORIES property contains path:

    "C:/Users/daego/Desktop/Projects/Light.vn-core/core/out/build/windows-release/_deps/minizip-src/third-party/zlib"

  which is prefixed in the build directory.Target "zlibstatic"
  INTERFACE_INCLUDE_DIRECTORIES property contains path:

    "C:/Users/daego/Desktop/Projects/Light.vn-core/core/out/build/windows-release/_deps/minizip-src/third-party/zlib"

  which is prefixed in the source directory.

This seems to be due to
2e3d86c

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