![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
cmake
钧1998
这个作者很懒,什么都没留下…
展开
-
execute_process 函数不执行命令
cmake 这个函数也是醉了; 执行简单的命令正常执行;像touch 之类的但是执行protoc 这样的就不执行,也不报任何错误;也不显示任何信息;官方文档晦涩难懂;试了几天仍然没有调通。已知的一种情况是中不到protoc 命令 路径不对,没有将protoc 位置加入系统路径;不得不吐槽 cmake的很多函数设计的。...原创 2021-09-08 10:03:00 · 1131 阅读 · 0 评论 -
add_custom_command ()不执行
有两种情况 :第一种情况: 这个命令是在 make阶段调用的,cmake阶段是不调用的,不会执行生成文件。第二种情况,如果生成的目标中没用到相应的生成文件,也不会执行。如果想在cmake阶段执行,请选择用execute_process();...原创 2021-09-01 16:44:46 · 902 阅读 · 0 评论 -
Xcode Run 出现Could not attach to pid LLDB provided noerror string
解决方法:清空 build 目录 重新cmake解决的问题。这个文章是普通的方法,我试了下没有有效,直接清空才解决。https://www.cnblogs.com/shuilangyizu/p/10943744.html原创 2021-06-22 16:46:43 · 1966 阅读 · 0 评论 -
cmake 宏 CMAKE_CXX_COMPILER_FORCED
if(CMAKE_CXX_COMPILER_FORCED) # The compiler configuration was forced by the user. # Assume the user has configured all compiler information. set(CMAKE_CXX_COMPILER_WORKS TRUE) return() endif()原创 2021-06-18 14:48:31 · 733 阅读 · 0 评论