ruizhi

Results 3 comments of ruizhi

# CMAKE generated file: DO NOT EDIT! # Generated by "Unix Makefiles" Generator, CMake Version 2.8 # compile CXX with /usr/bin/c++ CXX_FLAGS = -g -I/home/ruizhi/test/include CXX_DEFINES =

Flycheck version: 0.26snapshot (package: 20160208.706)

我个人感觉这个问题可能不是在 flycheck 上,从上面的debug info 中看 cppcm-include-dirs=(-I"/home/ruizhi/test/src/" -I"/home/ruizhi/test/src/" -I"/home/ruizhi/test/src/") 我的理解中就是说,cppcm-reload-all 后,没有把/home/ruizhi/test/include 放进include-dirs,不知道这么理解是否正确 flycheck-clang-include-path 是 ("/home/ruizhi/test/src/" "/home/ruizhi/test/src") 同时对上述示例工程进行 mkdir build; cd build; cmake ..; make; 是能够将工程编译成功,在build/lib 目录下,能看到目标的lib文件 另外就我自己的尝试来说,有一些重现的条件是在cmake文件中要有如下三句设置 set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY \${CMAKE_BINARY_DIR}/lib) set(CMAKE_LIBRARY_OUTPUT_DIRECTORY \${CMAKE_BINARY_DIR}/lib)...