You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Vcpkg with CLion
Open the Toolchains settings (File > Settings on Windows and Linux, CLion > Preferences on macOS), and go to the CMake settings (Build, Execution, Deployment > CMake). Finally, in CMake options, add the following line:
-DCMAKE_TOOLCHAIN_FILE=[vcpkg root]/scripts/buildsystems/vcpkg.cmake
Unfortunately, you'll have to add this to each profile.
This part, Unfortunately, you'll have to add this to each profile. is not true, you have a way to solve it using standar cmake approach by adding PreLoad.cmake file and adding the following line to it set(CMAKE_TOOLCHAIN_FILE ~/Development/vcpkg/scripts/buildsystems/vcpkg.cmake CACHE INTERNAL "" FORCE)
Dont remember if restarting the CLion is enough or you have to delete the cmake folder and restart CLion but it is less important
The text was updated successfully, but these errors were encountered:
Documentation problem
it is stated here https://github.com/microsoft/vcpkg#vcpkg-with-clion
This part,
Unfortunately, you'll have to add this to each profile.
is not true, you have a way to solve it using standar cmake approach by adding PreLoad.cmake file and adding the following line to itset(CMAKE_TOOLCHAIN_FILE ~/Development/vcpkg/scripts/buildsystems/vcpkg.cmake CACHE INTERNAL "" FORCE)
Dont remember if restarting the CLion is enough or you have to delete the cmake folder and restart CLion but it is less important
The text was updated successfully, but these errors were encountered: