AnswerDotAI / AnswerDotAI/gpu.cpp
Unable to build with cmake FetchContent
- Lenguaje dominante
- C++
- Estrellas
- 4k
- Forks
- 199
- Merge medio
- 2 min
- PR fusionados (30 d)
- 3
Descripción
Expected: Use FetchContent_Delcare to declare the dependency and then use FetchContent_MakeAvailable and the built library and headers will be in the _deps/gpucpp-{build/subbuild/src}
Actual: The generating process ends up with an error. Error message and minimal reproducible CMakeLists.txt is inside the [gist](https://gist.github.com/kagurazaka-ayano/64a806bff6de0c6a7ba7a00d12eff3dc)
The dawn library file doesn't appear in the third_party/lib directory. After I built [this](https://github.com/jspanchu/webgpu-dawn-binaries) and put the libdawn.dylib into the third_party/lib directory the cmake command works.
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
Comienza con el CMakeLists.txt mínimo reproducible del gist enlazado e inspecciona la configuración de FetchContent; después, reproduce el error de generación. Comprueba cómo se espera que la biblioteca dawn llegue a third_party/lib y a las rutas _deps/gpucpp-{build/subbuild/src}. Se considera terminado cuando una compilación limpia de CMake encuentra la biblioteca y los headers sin colocar libdawn.dylib manualmente.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- cmake, cpp
- Área
- build-system
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100