CMake noob到了。
我已经下载了GLFW源代码并尝试构建它。所以,问题是不可避免的。
CMake错误:
You have called ADD_LIBRARY for library glfw without any source files. This typically indicates a problem with your CMakeLists.txt file
CMake Error at CMakeLists.txt:56 (set_target_properties):
set_target_properties called with incorrect number of arguments.
CMakeLists.txt中的问题代码(此文件太大,无法完全复制粘贴,但如果您需要,我可以发布):
set_target_properties(glfw PROPERTIES
OUTPUT_NAME ${GLFW_LIB_NAME}
VERSION ${GLFW_VERSION}
SOVERSION ${GLFW_VERSION_MAJOR}
POSITION_INDEPENDENT_CODE ON
FOLDER "GLFW3")
普通表面谷歌搜索和尝试替换文件是无效的。
CMake版本: 3.8.0-rc1
P.S。抱歉我的英文。