Open GitMensch opened 8 months ago
Does this also apply to you: https://github.com/SpecFlowOSS/SpecFlow/issues/1250#issuecomment-415782071 ?
As noted the newer MSBuild (from VS2017) does work, but the goal is to run that with a VS2015 stack (which worked before).
Was probably changed in https://github.com/microsoft/vcpkg/pull/33142
@Neumann-A Can you please verify if this failure is related to your changes (and possibly how to work around that without reversing the commit)?
You should really be using VS 2022 with the v140 toolset instead of expecting that a 2023 change will work with VS2015. There is probably a workaround by using an overlay for vcpkg-msbuild removing the problematic field but I am not going to investigate that possibility.
vcpkg says that VC2015 is expected to work.
It is not that I'd like to keep that forever, but I do know some people/companies still use VC2015 and have VC2015 generated DLLs that need to work toghether, so "just using a newer toolset" is likely not what will work there.
Is it possible to request to use an older definition? Maybe by updating the ports definitions, then manually downgrading the mpir definition to the last version that worked before installing?
V140 is the old toolset which can be installed via the installer. Just use a newer MSBuild/Visual Studio
If you use manifest mode you can pin whatever version you like.
Found the issue - it is actually a bug in vcpkg_msbuild_install
, it works when moving back to the deprecated vcpkg_install_msbuild
instead (only copy/replace).
@Neumann-A can you please do that?
.. wait, that builds but not install correctly:
C:\Tools\vcpkg\ports\mpir\portfile.cmake: warning: The folder ${CURRENT_PACKAGES_DIR}/include is empty or not present. This usually means that headers are not correctly installed. If this is a CMake helper port, add set(VCPKG_POLICY_CMAKE_HELPER_PORT enabled). If this is not a CMake helper port but this is otherwise intentional, add set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled) to suppress this message. C:\Tools\vcpkg\ports\mpir\portfile.cmake: warning: There should be no installed empty directories. Empty directories are not representable to several binary cache providers, git repositories, and are not considered semantic build outputs. You should either create a regular file inside each empty directory, or delete them with the following CMake. To suppress this message, add set(VCPKG_POLICY_ALLOW_EMPTY_FOLDERS enabled) C:\Tools\vcpkg\packages\mpir_x86-windows: note: the directories are relative to ${CURRENT_PACKAGES_DIR} here note: file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/include") C:\Tools\vcpkg\ports\mpir\portfile.cmake: warning: Found 2 post-build check problem(s). These are usually caused by bugs in portfile.cmake or the upstream build system. Please correct these before submitting this port to the curated registry. Stored binaries in 1 destinations in 860 ms.
Any hint what I need to add/adjust to get that fixed?
Operating system
Windows
Compiler
MSCV
Steps to reproduce the behavior
Failure logs
console output
C:\Tools\vcpkg\buildtrees\mpir\build-x86-windows-rel-out.log