Skip to content

Ensure discovered CMake path is appended correctly - #733

Merged
memsharded merged 1 commit into
conan-io:develop2from
JakeSwartwoutTrimble:cmake_path_discovery_fails
Jun 5, 2026
Merged

Ensure discovered CMake path is appended correctly#733
memsharded merged 1 commit into
conan-io:develop2from
JakeSwartwoutTrimble:cmake_path_discovery_fails

Conversation

@JakeSwartwoutTrimble

Copy link
Copy Markdown
Contributor

When CMake is not already in the path, the directory of the CMAKE_COMMAND is stored into PATH_TO_CMAKE_BIN to append to the path. Most systems use ":" (colon) as a separator, but on windows the path needs to be separated by ";" (semicolon).

Tested that when CMake isn't in my path, it gets added correctly for:

  • Windows Git-Bash terminal configuring windows build -> correctly uses windows ";" path separator
  • Windows Android Studio app doing a gradle-sync to configure cross-building for android -> correctly uses windows ";" path separator
  • MacOS zsh terminal configuring ios build -> correctly uses the standard ":" path separator

@CLAassistant

CLAassistant commented Jun 4, 2026

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 the contribution @JakeSwartwoutTrimble

Looks good to me

@memsharded

Copy link
Copy Markdown
Member

It would be necessary to sign the CLA in order to merge it, please check it. Thanks

When CMake is not already in the path, the directory of the `CMAKE_COMMAND` is stored into `PATH_TO_CMAKE_BIN` to append to the path. Most systems use ":" (colon) as a separator, but on windows the path is separated by ";" (semicolon).
@JakeSwartwoutTrimble
JakeSwartwoutTrimble force-pushed the cmake_path_discovery_fails branch from 7bf3bbf to 76aa902 Compare June 5, 2026 21:40
@JakeSwartwoutTrimble

Copy link
Copy Markdown
Contributor Author

Thanks! Looks like I had accidentally put my email in wrong so it wasn't getting linked to my CLA signing, looks to be all good now

@memsharded
memsharded merged commit b159384 into conan-io:develop2 Jun 5, 2026
2 of 5 checks passed
@memsharded

Copy link
Copy Markdown
Member

Excellent, many thanks!

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.

3 participants