Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wgtmac opened this issue Jan 24, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@wgtmac
Copy link
Member

wgtmac commented Jan 24, 2025

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

@wgtmac wgtmac added the bug Something isn't working label Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant