cpm-cmake / CPM.cmake

📦 CMake's missing package manager. A small CMake script for setup-free, cross-platform, reproducible dependency management.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

package-lock branches and new dependencies

andyinno opened this issue · comments

Hello,

As the title says, while working with multiple branches and multiple addition to the project, what I am seeing is that the package-lock.cmake content is updated (I think) with appends of first found written first to file.

This causes the fact that adding different dependencies it found are added in different order. This cause merge branching and rebasing to have a lot of conflicts.

Would be feasible to sort the content of package-lock.cmake in alphabetical order? That should cause less conflicts.

Good point, it would definitely make sense to sort the package-lock to prevent such conflicts.