【发布时间】:2022-10-20 18:01:46
【问题描述】:
CMakeLists.txt 中的代码
if (NOT glad_FOUND)
include(FetchContent)
FetchContent_Declare(
glad
URL "https://glad.dav1d.de/#language=c&specification=gl&api=gl%3D4.6&api=gles1%3Dnone&api=gles2%3Dnone&api=glsc2%3Dnone&profile=compatibility&loader=on"
DOWNLOAD_NO_EXTRACT TRUE
)
FetchContent_MakeAvailable(glad)
endif()
Url
错误:
D:/IDEs/apps/CLion/ch-0/222.4167.35/bin/cmake/win/share/cmake-3.23/Modules/ExternalProject.cmake:2302:EVAL:2 (add_custom_command) 处的 CMake 错误: 不允许包含“#”的副产品。
【问题讨论】:
-
可能有另一个(直接)链接到同一个项目,但不包含井号。比如that question。