I wanna change some codes in 'openmvg', and compile it many times.
Each time, I remove the port and reinstall it with '--editable'. Is there a more convenient way to do this?
@FishHe, you don't need to remove the port.
You only need to use '--editable' each time, it will use the source you modified.
@FishHe, please reopen this issue if it's not answer you want.
However, using '--editable' each time does not work for me. Vcpkg can't detect my changes on the source code.
That's strange, I double confirm again, it works for me, I installed the port with --editable before, uninstall the port, modify some changes in buildtree, reinstall it with --editable again, the changes still be there.
You can see it use the source cached before.
PS F:\vcpkg\clean> ./vcpkg install openmvg:x64-windows --editable
Computing installation plan...
The following packages will be built and installed:
openmvg[core]:x64-windows
Detecting compiler hash for triplet x64-windows...
Starting package 1/1: openmvg:x64-windows
Building package openmvg[core]:x64-windows...
-- Note: openmvg only supports static library linkage. Building static library.
-- Using cached F:/vcpkg/clean/downloads/openMVG-openMVG-606d1c9e82123dd50de282128151a50bf42262fc.tar.gz
-- Using source at F:/vcpkg/clean/buildtrees/openmvg/src/0bf42262fc-5796248b75
-- Configuring x64-windows
@FishHe, you don't need to wait it start to build, end up the thread when it finished extracting source, it should be very quick, also you does't need to uninstall the port again, sorry for the confuse.
But it you want to verify your changes, you need to recompile it.