[CMake] no space between include path

William A. Hoffman billlist at nycap.rr.com
Tue Oct 3 12:39:47 EDT 2006


At 12:28 PM 10/3/2006, frederic heem wrote:
>foreach(PACKAGE ${PACKAGELIST})
>        find_package(${PACKAGE})
>        message(${PACKAGE}_FOUND)
>        if (${PACKAGE}_FOUND)
>                include_directories(${${PACKAGE}_INCLUDE_DIR})
>                set(dumpcap_LIBS ${dumpcap_LIBS} ${${PACKAGE}_LIBRARIES})
>        endif (${PACKAGE}_FOUND)
>endforeach(PACKAGE)

Try adding a message call inside this if to see what is getting passed
to include_directories.

Add this before the include_directories call.
message(${${PACKAGE}_INCLUDE_DIR})

My guess is the value is getting set to a long string of stuff, mostly likely
pkgconfig output that has not been parsed.

-Bill



More information about the CMake mailing list