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

What is the magic behind vcpkg_test_cmake()? #5249

Closed
joa-quim opened this issue Jan 28, 2019 · 5 comments
Closed

What is the magic behind vcpkg_test_cmake()? #5249

joa-quim opened this issue Jan 28, 2019 · 5 comments
Labels
category:documentation To resolve the issue, documentation will need to be updated

Comments

@joa-quim
Copy link
Contributor

I am trying to write a portfile to a new package. Managed to make it build but can't pass the vcpkg_test_cmake(PACKAGE_NAME GMT MODULE) step. No matter what I try

CMake integration test failed; unable to find_package(GMT MODULE REQUIRED)
@joa-quim joa-quim changed the title What is the magic beyond vcpkg_test_cmake()? What is the magic behind vcpkg_test_cmake()? Jan 28, 2019
@joa-quim
Copy link
Contributor Author

And if I try with no call to vcpkg_test_cmake(PACKAGE_NAME GMT MODULE) than it fails because
(so I'm screw in either way)

-- Performing post-build validation done
Error: Building package gmt:x64-windows failed with: POST_BUILD_CHECKS_FAILED
Please ensure you're using the latest portfiles with `.\vcpkg update`, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
  Package: gmt:x64-windows
  Vcpkg version: 2018.11.23-nohash

@myd7349
Copy link
Contributor

myd7349 commented Jan 30, 2019

https://github.com/Microsoft/vcpkg/blob/master/scripts/cmake/vcpkg_test_cmake.cmake

You can take a glance at vcpkg/buildtrees/gmt/x64-windows-test.

@joa-quim
Copy link
Contributor Author

joa-quim commented Jan 30, 2019 via email

@PhoebeHui PhoebeHui added the category:documentation To resolve the issue, documentation will need to be updated label Feb 15, 2019
@myd7349
Copy link
Contributor

myd7349 commented May 23, 2019

This should be fixed in #5574.

@PhoebeHui
Copy link
Contributor

vcpkg_test_cmake disabled now, and the error message friendly informed user to remove .exe or debug/include etc. Related to https://github.com/microsoft/vcpkg/blob/master/docs/examples/packaging-zipfiles.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:documentation To resolve the issue, documentation will need to be updated
Projects
None yet
Development

No branches or pull requests

3 participants