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

Search conan executable in the default installer location #617

Open
wants to merge 1 commit into
base: develop2
Choose a base branch
from

Conversation

nolange
Copy link

@nolange nolange commented Feb 1, 2024

The official Windows installer [1] by default installs conan to %ProgramFiles%\Conan\conan\conan.exe.
Add this subdirectory to the find_package call on Windows.

[1] - https://conan.io/downloads

The official Windows installer [1] by default installs conan to
`%ProgramFiles%\Conan\conan\conan.exe`.
Add this subdirectory to the find_package call on Windows.

[1] - https://conan.io/downloads
@CLAassistant
Copy link

CLAassistant commented Feb 1, 2024

CLA assistant check
All committers have signed the CLA.

Copy link
Member

@memsharded memsharded left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution @nolange

It is not fully clear why this would be necessary. The Windows installer puts Conan in the path, so it should be found by find_program without further issues.

@nolange
Copy link
Author

nolange commented Feb 1, 2024

no, putting stuff in path is a really bad idea, windows will search DLLs there.

if you dont have conan in path, the script wont work obviously

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants