I am testing vcpkg for my project and I came across a problem with cmake-gui
I have installed vcpkg, with the help of vcpkg Boost libraries were installed. When I compile via command line, everything works as it should. I use command
cmake .. -DCMAKE_TOOLCHAIN_FILE=D:/repos/vcpkg/scripts/buildsystems/vcpkg.cmake -G"Visual Studio 15 Win64"
But the problem is when I want to use cmake-gui to generate build files. It reports that Boost is not found.
I tried to add
set(CMAKE_TOOLCHAIN_FILE "D:/repos/vcpkg/scripts/buildsystems/vcpkg.cmake" CACHE STRING "Path for vcpkg.cmake")
to the top of my Makefile, but it did not help. I also tried with add_definitions and add_compile_options, without success.
So what should I add to my cmake file to be able to use cmake-gui with vcpkg ?