[CMake] no space between include path

William A. Hoffman billlist at nycap.rr.com
Wed Oct 4 08:56:45 EDT 2006


At 04:27 AM 10/4/2006, frederic heem wrote:
>Hi,
>An very simple CMakeLists.txt has been written to show to problem:
>
>include_directories("-I/bar")

That is the problem.   include_directories does not take a -I, 
the compiler may use some other flag, you just have to give
it the directory with no flags.

Run 
cmake --help-command include_directories

for documentation.

So, the -I has to be striped from the output of pkgconfig.


-Bill




More information about the CMake mailing list