Skip to content

Search conan executable in the default installer location - #617

Open
nolange wants to merge 1 commit into
conan-io:develop2from
nolange:search_conan_in_default_location
Open

Search conan executable in the default installer location#617
nolange wants to merge 1 commit into
conan-io:develop2from
nolange:search_conan_in_default_location

Conversation

@nolange

@nolange nolange commented Feb 1, 2024

Copy link
Copy Markdown

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

CLAassistant commented Feb 1, 2024

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@memsharded memsharded left a comment

Copy link
Copy Markdown
Member

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

nolange commented Feb 1, 2024

Copy link
Copy Markdown
Author

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