小编Cin*_*ndy的帖子

CMake:无法创建目标,因为已存在另一个同名目标

我正在尝试使用 cmake 安装 plexe-sumo。我按照 plexe.car2x.org 上的教程进行操作,结果如下:

\n\n
-- CMAKE_BUILD_TYPE: Release\n-- CMAKE_BINARY_DIR: /home/cc/src/plexe-sumo/build-release\n-- CMAKE_SOURCE_DIR: /home/cc/src/plexe-sumo\n-- \n-- Platform: \n--     Host: Linux4.15.0-34-genericx86_64\n--     CMake: 3.12.2\n--     CMake generator: Unix Makefiles\n--     CMake build tool: /usr/bin/make\n-- \n-- Found Proj: /usr/lib/x86_64-linux-gnu/libproj.so\nCMake Error at /usr/local/share/cmake-3.12/Modules/UseSWIG.cmake:627 (add_custom_target):\n  add_custom_target cannot create target "libsumo_swig_compilation" because\n  another target with the same name already exists.  The existing target is a\n  custom target created in source directory\n  "/home/cc/src/plexe-sumo/src/libsumo".  See documentation for policy\n  CMP0002 for more details.\nCall Stack (most recent call first):\n  src/libsumo/CMakeLists.txt:39 (SWIG_ADD_LIBRARY)\n\n\n-- Enabled features: …
Run Code Online (Sandbox Code Playgroud)

pthreads cmake

7
推荐指数
1
解决办法
1万
查看次数

标签 统计

cmake ×1

pthreads ×1