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

vcpkg with CLion #22178

Closed
kreuzerkrieg opened this issue Dec 23, 2021 · 3 comments
Closed

vcpkg with CLion #22178

kreuzerkrieg opened this issue Dec 23, 2021 · 3 comments
Assignees
Labels
category:vcpkg-feature The issue is a new capability of the tool that doesn’t already exist and we haven’t committed

Comments

@kreuzerkrieg
Copy link
Contributor

Documentation problem

it is stated here https://github.com/microsoft/vcpkg#vcpkg-with-clion

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

@JackBoosY JackBoosY self-assigned this Dec 23, 2021
@JackBoosY JackBoosY added the category:vcpkg-feature The issue is a new capability of the tool that doesn’t already exist and we haven’t committed label Dec 23, 2021
@JackBoosY
Copy link
Contributor

Can you please correct our document?

Thanks.

@kreuzerkrieg
Copy link
Contributor Author

Can you please correct our document?

Thanks.

#22275

@LilyWangLL
Copy link
Contributor

Fixed by #24737.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:vcpkg-feature The issue is a new capability of the tool that doesn’t already exist and we haven’t committed
Projects
None yet
Development

No branches or pull requests

4 participants