CMake Error: OUTPUT containing a "#" is not allowed [Fixed]

Hi,

after running make in my Blender source folder I get a very long error message, here’s the last few lines:

CMake Error in source/blender/freestyle/CMakeLists.txt:
  OUTPUT containing a "#" is not allowed.


CMake Error in source/blender/cpucheck/CMakeLists.txt:
  OUTPUT containing a "#" is not allowed.


CMake Error in tests/CMakeLists.txt:
  OUTPUT containing a "#" is not allowed.


CMake Error in tests/python/CMakeLists.txt:
  OUTPUT containing a "#" is not allowed.


CMake Error in tests/python/collada/CMakeLists.txt:
  OUTPUT containing a "#" is not allowed.


CMake Error in tests/gtests/CMakeLists.txt:
  OUTPUT containing a "#" is not allowed.


CMake Error in source/creator/CMakeLists.txt:
  OUTPUT containing a "#" is not allowed.


-- Generating done (3.2s)
CMake Generate step failed.  Build files cannot be regenerated correctly.
"Configuration Failed"

How do I fix this?

Edit:
I fixed it. To anyone getting the same error:

Make sure that there are no special characters like # in your path to the build folders

The bots are passing, is this a clean main or a branch build?

It’s just clean main.

I tried reinstalling CMake but it still gives this error.

I fixed it. To anyone getting the same error:

Make sure that there are no special characters like # in your path to the build folders