Skip to content

[CI] Debug build in the Windows CI reported error with IMPORTED_LOCATION not set #39

@wgtmac

Description

@wgtmac

If we use debug build in the Windows CI like cmake --build . --config Release --target install, we will see the following errors:

https://github.com/wgtmac/iceberg-cpp/actions/runs/12932554661/job/36069087661

CMake Error in CMakeLists.txt:
  IMPORTED_LOCATION not set for imported target
  "Iceberg::iceberg_puffin_static" configuration "MinSizeRel".


CMake Error in CMakeLists.txt:
  IMPORTED_LOCATION not set for imported target
  "Iceberg::iceberg_arrow_static" configuration "MinSizeRel".


CMake Error in CMakeLists.txt:
  IMPORTED_LOCATION not set for imported target
  "Iceberg::iceberg_avro_static" configuration "MinSizeRel".


CMake Error in CMakeLists.txt:
  IMPORTED_LOCATION not set for imported target
  "Iceberg::iceberg_puffin_static" configuration "RelWithDebInfo".


CMake Error in CMakeLists.txt:
  IMPORTED_LOCATION not set for imported target
  "Iceberg::iceberg_arrow_static" configuration "RelWithDebInfo".


CMake Error in CMakeLists.txt:
  IMPORTED_LOCATION not set for imported target
  "Iceberg::iceberg_avro_static" configuration "RelWithDebInfo".

It appears after upgrading to Windows 2022 and it seems related to https://cmake.org/cmake/help/latest/policy/CMP0111.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions