Skip to content

Conversation

@xianshijing-lk
Copy link
Collaborator

The existing code failed with errors like
Error: file INSTALL cannot find "D:/a/client-sdk-cpp/client-sdk-cpp/$<IF:$": File
exists.

According to ChatGPT:
It failed because install(FILES …) argument ended up containing a literal, unevaluated generator expression in the generated install script:
file INSTALL cannot find "…/$<IF:$": File exists.

That means CMake wrote something like this into build-release/cmake_install.cmake:

file(INSTALL DESTINATION ... FILES "D:/a/.../$<IF:$CONFIG:Debug, ... >")
…and then tried to install a file whose name literally begins with $<IF:... (which of course doesn’t exist).

This PR is an attempt to fix it. I don't have windows machine, so I have to land it and trigger a release for testing purpose.

@xianshijing-lk xianshijing-lk merged commit c2fa0c9 into main Jan 9, 2026
5 checks passed
@xianshijing-lk xianshijing-lk deleted the sxian/fix_windows_release_build branch January 9, 2026 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants