CMake Error at CMakeLists.txt:97 (ADD_TARGET_DEFINITIONS): Unknown CMake command "ADD_TARGET_DEFIN

在尝试使用cmake版本3.14.3编译项目时遇到了错误,CMakeLists.txt第97行报错,提示未知CMake命令'ADD_TARGET_DEFINITIONS'。配置过程不完整,错误发生。后续make命令找不到指定目标和makefile,导致编译失败。
摘要由CSDN通过智能技术生成

cmake 编译一直出错

$ cmake --version
cmake version 3.14.3

– The C compiler identification is GNU 7.3.0
– The CXX compiler identification is GNU 7.3.0
– Check for working C compiler: /usr/bin/cc
– Check for working C compiler: /usr/bin/cc – works
– Detecting C compiler ABI info
– Detecting C compiler ABI info - done
– Detecting C compile features
– Detecting C compile features - done
– Check for working CXX compiler: /usr/bin/c++
– Check for working CXX compiler: /usr/bin/c++ – works
– Detecting CXX compiler ABI info
– Detecting CXX compiler ABI info - done
– Detecting CXX compile features
– Detecting CXX compile features - done
CMake Error at CMakeLists.txt:97 (ADD_TARGET_DEFINITIONS):
Unknown CMake command “ADD_TARGET_DEFINITIONS”.

– Configuring incomplete, errors occurred! See also “/home/wang/code/epoch-4.12.8/SDF/VisIt

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值