CPM keeps breaking itself on every dependency update #475
Replies: 3 comments · 5 replies
-
:( |
Beta Was this translation helpful? Give feedback.
All reactions
-
we don't have to rush anything. I just want to raise the awareness that we have to address this in whatever way. git checkouts cannot be the solution (I think) as not everything is a git repository. |
Beta Was this translation helpful? Give feedback.
All reactions
-
I've never had this problem. It's my set -ex
mkdir -p build-rel
cd build-rel
cmake -DCMAKE_BUILD_TYPE=Release \
-DLIBTERMINAL_LOG_RAW=OFF \
-DLIBTERMINAL_LOG_TRACE=OFF \
-DLIBTERMINAL_EXECUTION_PAR=OFF \
-DLIBTERMINAL_TESTING=ON \
-DLIBTERMINAL_PASSIVE_RENDER_BUFFER_UPDATE=OFF \
-DCONTOUR_COVERAGE=OFF \
-DCONTOUR_PERF_STATS=ON \
-DCONTOUR_BLUR_PLATFORM_KWIN=OFF \
-DCONTOUR_TESTING=ON \
-DCRISPY_TESTING=ON \
.. After installation, I remove the |
Beta Was this translation helpful? Give feedback.
All reactions
-
The key thing here is: if you already have build dir and change any package version, CPM breaks to hell and beyond during the update part |
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 1
-
Hmm, maybe https://github.com/cpm-cmake/CPM.cmake/wiki/Package-lock can be useful. |
Beta Was this translation helpful? Give feedback.
All reactions
-
IMHO, the best solution: don't use CMake features and keep third-party libraries in this repository. |
Beta Was this translation helpful? Give feedback.
All reactions
-
this would probably be a maintenance burden squared to hell. Hmm... To give you more context, I just switched from master to my improvements/grid branch for continuing to work on it. So cmake jumps in, and there is indeed a slightly different ThirdParties.cmake and this is what happens:
So it keeps running into the same error and keeps failing. a I'm building by simply running |
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 1
-
Closing stale discussion. We've moved away from CPM since quite some time. |
Beta Was this translation helpful? Give feedback.
-
One example on OSX just right now due to last deps update:
I'm posting this here so we have a common place to discuss somewhat in the future how to get rid of this breakage.
So how to reproduce... just change any CPM package to a different version and rebuild the project. cmake detects a change and will run reconfiguration and then CPM breaks at the point like the above screenshot. The breakage happens on Linux/Mac/Windows (at least for me).
Beta Was this translation helpful? Give feedback.
All reactions