#689·Hazel

Build Input File (hzpch.h) Cannot be Found

Author: prodskimayaCreated Jan 5, 2025Updated Jan 5, 2025

Describe the bug

--WARNING: This bug may only be pertinent to the MacOS platform-- Whenever trying to compile the Hazel library, the compiler complains how it cannot find the hzpch.h file. I suspect that Hazel's premake5 build file is causing the issue. Specifically, this line:

Screenshot 2025-01-05 at 10 13 17 AM

The hzpch.h file is not in the project's root folder, but it's inside the source folder.

Screenshot 2025-01-05 at 10 15 23 AM

Once I changed that line of code in Hazel's premake5 file, the issue was fixed.

Screenshot 2025-01-05 at 10 13 28 AM

However, I'm not sure if this is an issue on Windows, and if this fix will affect the Windows build. If this fix doesn't cause any problems, I would be happy to open a pull request.

To Reproduce

Steps to reproduce the behavior:

  1. Build Hazel as normal

Expected behavior

The compiler to find hzpch.h file without issue.

Operating system: (please complete the following information)

  • OS: MacOS
  • Version: 15.1.1

Additional context

This may only be an issue on MacOS.