小编Nik*_*tha的帖子

在CMake中如何创建具有相同名称的目标?

我有一个关于CMake的问题,我需要帮助来解决我得到的以下错误:

CMake Error at :::: (add_custom_target):
  add_custom_target cannot create target "generate" because another target
  with the same name already exists.  The existing target is a custom target
  created in source directory :::::.
Run Code Online (Sandbox Code Playgroud)

这里两个相同级别的目标名称CMakeLists.txt是相同的,我想保持它们相同,没有任何冲突.谁能帮我吗?

cmake

4
推荐指数
2
解决办法
3054
查看次数

标签 统计

cmake ×1