具有可执行文件的CXX CMake编译器前缀不起作用

时间:2019-11-20 15:57:47

标签: c++ cmake conan parasoft

我正在跟踪Parasoft代码,以在我的源代码上运行它:https://docs.parasoft.com/display/CPPTEST1040/Instrumenting+and+Building+Instrumented+Source+Code

我在新柯南配置文件中将CXX定义为环境变量。

[env]
CXX="cpptestcc -compiler gcc_5-64 -line-coverage -workspace /home/test/proj -- c++"

我想在基于Conan的项目上运行Parasoft代码。

conan install . -pr=myprofile

enter image description here

conan build . 

enter image description here

问题在于,我无法在CXX编译器之前安装parasoft代码。进入CXX编译器时出错,因为它没有采用柯南配置文件中定义的完整CXX。

我在stackoverflow中看到很多与此相关的链接:How to prefix CMake Compiler?

在我的情况下,没有任何效果。请帮助我定义一个带有CXX前缀的可执行文件。

非常感谢。

0 个答案:

没有答案