Make Cmake work with debug build
Make Cmake work with debug build

Before this CL, the following failed to link:

    cd .../skia
    git fetch
    git checkout origin/master
    git clean -ffdx
    SKIA="$PWD"
    cd $(mktemp -d);
    cmake "${SKIA}/cmake" -DCMAKE_BUILD_TYPE=Debug -G Ninja
    ninja
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1757993006

Review URL: https://codereview.chromium.org/1757993006

rubenvb/skia,Hikari-no-Tenshi/android_external_skia,tmpvar/skia.cc,Hikari-no-Tenshi/android_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,Hikari-no-Tenshi/android_external_skia,aosp-mirror/platform_external_skia,tmpvar/skia.cc,HalCanary/skia-hc,aosp-mirror/platform_external_skia,rubenvb/skia,aosp-mirror/platform_external_skia,tmpvar/skia.cc,tmpvar/skia.cc,tmpvar/skia.cc,qrealka/skia-hc,HalCanary/skia-hc,qrealka/skia-hc,Hikari-no-Tenshi/android_external_skia,google/skia,tmpvar/skia.cc,google/skia,rubenvb/skia,Hikari-no-Tenshi/android_external_skia,aosp-mirror/platform_external_skia,HalCanary/skia-hc,aosp-mirror/platform_external_skia,rubenvb/skia,HalCanary/skia-hc,HalCanary/skia-hc,Hikari-no-Tenshi/android_external_skia,rubenvb/skia,tmpvar/skia.cc,rubenvb/skia,google/skia,google/skia,qrealka/skia-hc,Hikari-no-Tenshi/android_external_skia,tmpvar/skia.cc,qrealka/skia-hc,HalCanary/skia-hc,qrealka/skia-hc,google/skia,google/skia,rubenvb/skia,google/skia,HalCanary/skia-hc,HalCanary/skia-hc,google/skia,aosp-mirror/platform_external_skia,rubenvb/skia,aosp-mirror/platform_external_skia,HalCanary/skia-hc,HalCanary/skia-hc,google/skia,google/skia,rubenvb/skia,aosp-mirror/platform_external_skia,rubenvb/skia,qrealka/skia-hc,Hikari-no-Tenshi/android_external_skia,qrealka/skia-hc,qrealka/skia-hc,tmpvar/skia.cc