Closed kou closed 1 year ago
I think that we should have changed https://github.com/conda-forge/thrift-cpp-feedstock/blob/main/recipe/meta.yaml#L80
- if not exist %PREFIX%\\Library\\lib\\thriftmd.lib exit 1 # [win]
to
- if not exist %PREFIX%\\Library\\bin\\thriftmd.lib exit 1 # [win]
and not added f7cde24 in #54.
I think it's the other way around. The import libraries .lib
(for each .dll
) are usually in %LIBRARY_PREFIX/lib
while the .dll
files are in %LIBRARY_PREFIX/bin
.
But definitely, it should be consistent; current status is:
"Library/bin/thriftmd.dll",
"Library/bin/thriftnbmd.dll",
"Library/bin/thriftnbmd.lib",
"Library/bin/thriftzmd.dll",
"Library/bin/thriftzmd.lib",
[... other stuff...]
"Library/lib/thriftmd.lib"
It should also not be moved around manually in the build script after installation, because that will break the installed CMake metadata files.
Solution to issue cannot be found in the documentation.
Issue
Library/lib/cmake/thrift/thriftTargets-release.cmake
refers${_IMPORT_PREFIX}/bin/thriftmd.lib
but it doesn't exist. Becausebin/thriftmd.lib
is moved tolib/
by #54.See also a real world failure log from Apache Arrow: https://ci.appveyor.com/project/ApacheSoftwareFoundation/arrow/builds/45295950
https://github.com/apache/arrow/pull/14597 is the pull request for the failure.
I think that we should have changed https://github.com/conda-forge/thrift-cpp-feedstock/blob/main/recipe/meta.yaml#L80
to
and not added https://github.com/conda-forge/thrift-cpp-feedstock/commit/f7cde2426c62b821fe43f9cc3a3b5711235cb3df in #54.
Because Apache Thrift changed the
.lib
directory tobin/
fromlib/
by https://github.com/apache/thrift/commit/66d110bcce5c7e1b0deeacd28b046fb4a9c0249b .Installed packages
Environment info