【发布时间】:2014-06-18 14:41:44
【问题描述】:
有没有办法让 CMake include_directories 包含带有等于(=)字符的系统目录前缀?这样我就可以让 gcc 为关联的目录添加前缀 -isysroot 标志以进行交叉编译。
当我尝试包含带有 equals(=) 前缀的路径时,假定相对路径和前缀带有当前源路径:
include_directories(AFTER SYSTEM "=/usr/include")
结果:
-isystem /root/opencv-2-4-9/opencv/modules/highgui/=/usr/include/
我的期望是:
-isystem=/usr/include/
【问题讨论】: