C++ Cmake build with cotire and gtest - error with float.h

拟墨画扇 提交于 2019-12-11 07:55:58

问题


I have a cmake build that uses gtest - everything works as expected. When I add cotire in I get the error:

error: use of undeclared identifier 'DBL_MAX'

Anywhere #import <float.h> is used

It seems to me that some setting is being fubar'd by adding cotire, but the environment variables look roughly the same

https://gist.github.com/anonymous/259e824359b7b399bc10f7aefd30b827

Am I missing something obvious?

来源:https://stackoverflow.com/questions/46734274/c-cmake-build-with-cotire-and-gtest-error-with-float-h

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!