CMake: try to avoid compilation for `install` target

This is andrewrk's patch from ziglang#6724 (rebased)

CMake: Fix dependency problem

I don't know whether the error was expected cmake behavior or a bug.
This change seems to fix the issue. See ziglang#6724 for details.
77d67aa662johnLate committed on 11/17/2020, 12:45:13 AM· committed by Andrew Kelleyparentf9d2097
1 file changedLine totals unavailable