Closed Destranix closed 8 months ago
It's not relative, it's absolute. Please include an actual broken reproducable setup if you think this is a bug.
It causes problems if GLAD_SOURCES_DIR is set manually and not to an absolute path. Solution seems to be either to tell users not to do that or converting the path to an absolute path in the CMakeList.txt.
I decided to document to use an absolute path, making it relative using cmake_path
just has the same issue of potentially doing the wrong thing.
https://github.com/Dav1dde/glad/blob/f237a2bfcec0d9b82b90ec9af4af265c40de7183/cmake/CMakeLists.txt#L235-L247
How is this supposed to work? By using "WORKING_DIRECTORY" we are moving to the build directory as the manual says:
https://cmake.org/cmake/help/latest/command/add_custom_command.html
But then we try to execute the glad python module, that though is located in the source directory.