This fixes a missing dependency error when the imported GLFW target is a static library. Thanks to @mosra for reporting the bug.