在我的CMakeLists.txt文件,我写这篇文章:cmake的编译错误
set(LIBHELLO_SRC hello.c)
set_target_properties(hello_static PROPERTIES OUTPUT_NAME "hello")
get_target_property(OUTPUT_VALUE hello_static OUTPUT_NAME)
message(STATUS "This is the hello_static OUTPUT_NAME:"${OUTPUT_VALUE})
当我运行cmake
,它发生
set_target_properties无法找到目标将属性添加到: hello_static
之后放置也许你的目标名称或路径是错误的或尚未建立。 – Erfankam 2017-02-27 12:19:31