Skip to content

[cmake] Inconsistent behavior with the official version of cmake #221

Closed
@JackBoosY

Description

@JackBoosY

Hi guys,
I'm vcpkg maintainer.
Recently we received an issue about using cmake 3.22.2 which installed by pip (microsoft/vcpkg#22947):
Using the following cmake code has wrong results:

message(STATUS "CMake ${CMAKE_VERSION}")
set(file /home/cuhk/vcpkg/packages/expat_x64-linux/debug/lib/pkgconfig/expat.pc)
message(STATUS "file: ${file}")
cmake_path(GET file PARENT_PATH pkg_lib_search_path)
message(STATUS "pkg_lib_search_path: ${pkg_lib_search_path}")

Expected:

pkg_lib_search_path: /home/cuhk/vcpkg/packages/expat_x64-linux/debug/lib/pkgconfig

Acturally:

pkg_lib_search_path: /home/cuhk/vcpkg/packages/expat_x64-linux/debug/lib/pkgconfig/expat.pc

Then we report this to cmake side: https://gitlab.kitware.com/cmake/cmake/-/issues/23187#note_1141682.

After discussions with the cmake maintainers, we believe that the cmake 3.22.2 version in pip is different from the official 3.22.2 version, and the modification of this bug may not be incorporated in pip side.

So can anyone take a look at this issue?

Thanks.
Jack

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions