I am trying to build something for which I have made some packages with vcpkg. I now realize that I have two installs of vcpkg and I've run the vcpkg integrate install in both of them and I've tried to add a json line and a CMakeLists.txt line that has the basics like this:
set(CMAKE_TOOLCHAIN_FILE "${CMAKE_CURRENT_SOURCE_DIR}/vcpkg/scripts/buildsystems/vcpkg.cmake" CACHE STRING "Vcpkg toolchain file")
I'm trying to get the build CMake check which refreshes the CMakeCache.txt file to find everything such as Minizip, etc.. I just need to better pin down the exact sequences of editing of files and environment variables. Just curious if a little hint would help. I am beginning to understand the various steps but I don't like the idea of editing the CMakeCache.txt directly (I can do this in CMake GUI) as I feel that it's better to set a bunch of stuff somewhere else - either in the environment variables or just as CMake variables. I'm very rusty on doing this stuff - haven't done it in like 7 years. My compiling has all been smaller projects that were easy to compile and link a couple libraries and execs that's all. Maybe a flowchart or something would help. My projecct has a bunch of Find this find that. For example FindMinizip.cmake but it doesn't find Minizip. I even give it hints where zlib is. I set some environment variables. I strongly suspect that I just don't have a mastery yet of vcpkg.
I tried to build but the CMake stalls early in the process due to not finding stuff and I'm also using the wrong set of boost because I don't have a nice boost directory - vcpkg doesn't install correctly as per just doing boost as an external library as before using vcpkg.
I haven't done much yet to troubleshoot the problem.
I think maybe I should build the whole thing without using vcpkg first, so I can better understand the program - I've been away from it for like 7 years. I might need some -dev setups in there and once I see what the program needs - particularly those lack of boost headers bother me. Boost is an easy system to use and it's install works so nicely that I have several boosts on my machine, each installed nicely.
The minizip didn't used to be a problem, it was just needing a zlib directory. Maybe I should just take a step back first.