Update version check in ccache.cmake so ccache can work on older cmake versions#4567
Conversation
|
That's weird - maybe I checked for the wrong version. It's also seems to work without it which wasn't the case before. The ccache stats in the workflows are also strange. Will take a look over the weekend. |
|
Can this merged in now? I can't build cppcheck locally without this change. The CI failure is because of an upload error(unrelated to this PR). |
I didn't get around to see if this actually affects something (I forgot about it earlier today) and won't until Sunday. Simply comment out the include for the time being.
Yeah some upstream services are extremely flakey...I am usually on top for re-starting those builds. |
|
This breaks ccache with It is not working properly for the other platforms. That step lacks the PCH handling. I will address that in another PR. |
| @@ -1,7 +0,0 @@ | |||
| if (CMAKE_VERSION VERSION_LESS "3.17") | |||
There was a problem hiding this comment.
Please restore this file and change the version to check for to 3.0.
|
Can this be merged? As cppcheck cant built on older versions of cmake without it. |
This causes ccache to be called twice, which fails since ccache is not a valid compiler. With cmake 3.16, I get this error from cmake: