cmake build和INCLUDE_PATH

时间:2015-05-18 12:54:09

标签: cmake poppler

我正在尝试通过cmake生成的make来构建项目,其中一个必需的头文件是 /usr/local/include/poppler/poppler-config.h 。然而

export INCLUDE_PATH=/usr/local/include/poppler/

也不是

export INCLUDE_PATH=/usr/local/include/帮助,我仍然得到:

fatal error: poppler-config.h: No such file or directory

我能错过什么?

我已经有一个pkg-config文件用于此依赖项,看起来没问题:

prefix=/usr/local
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include

Name: poppler
Description: PDF rendering library
Version: 0.33.0

Libs: -L${libdir} -lpoppler
Cflags: -I${includedir}/poppler

但是将它添加到PKG_CONFIG_PATH环境变量也无济于事。

是否有一些cmake缓存要重置?什么应该是一个优雅的解决方案?

0 个答案:

没有答案