作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我是 CMake 的新手,我想将发布版本的 _ITERATOR_DEBUG_LEVEL 设置为 0,调试版本的设置为 2,以解决在尝试编译依赖于其他项目的项目时出现的问题。
错误:
_iterator_debug_level value '2' doesn't match value '0' (this is for Release Win32 build, where the main project has the value disabled(0) and the project that it is dependent on has it enabled for some reason, somewhere)
我在主项目中没有 C/C++ 属性部分,因为它是一个严重依赖 CMake 的实用程序项目。因此,我只需要通过 CMake 选项来解决这个问题。
谁能告诉我通过 CMake 设置 visual studio 选项的方法?
最佳答案
add_definitions(-D_ITERATOR_DEBUG_LEVEL=0)
在 CMakeLists.txt 中似乎可以工作
关于c++ - 如何将 _ITERATOR_DEBUG_LEVEL 添加到 CMake?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54246427/
我是一名优秀的程序员,十分优秀!