CMake policy设置问题,请各位高手帮帮忙~
最近刚开始用cmake,各种各样的小问题几乎让人崩溃啦~。CMake Warning (dev) at src/CMakeLists.txt:50 (add_library):
Policy CMP0008 is not set: Libraries linked by full-path must have a valid
library file name. Run "cmake --help-policy CMP0008" for policy details.
Use the cmake_policy command to set the policy and suppress this warning.
我按照提示找了policy CMP0008,上面说在命令行用target_link_libraries(myexe /full/path/to/somelib)设置,但是结果显示的是“target_link_libraries"is not recognized as an internal or external command....,然后我试了下cmake_policy()命令,结果还是一样。 可是我已经把cmake的路径添加在环境变量中了啊。
本人电脑白痴,麻烦各位大神帮帮忙,万分感谢