Fix CMake bug introduced in 5cf811ec2688521cec2740f9936a7bb1b610d9aa
Fix CMake bug introduced in bfc63a9be37e0cd3c2e5865ed48bbcff58987400, which breaks the debug mode on Windows