[CMake] INCLUDE_DIRECTORIES() - no effect

Filipe Sousa filipe at ipb.pt
Thu May 12 08:37:36 EDT 2005


On Thursday 12 May 2005 12:06, Christian Kienle wrote:
> Hi again,
>
> sorry for my basic questions here on the list...
>
> My CMakeLists.txt file contains something like this:
>
> <snip>
> #find the postgresql headers
> FIND_PATH(POSTGRESQLHEADERS libpq-fe.h /Library/PostgreSQL8/include/)
> MESSAGE(${POSTGRESQLHEADERS})
> INCLUDE_DIRECTORIES(POSTGRESQLHEADERS)

INCLUDE_DIRECTORIES(${POSTGRESQLHEADERS})

>
> SET(POSTGRESQL_SOURCES postgresqlcursor.cpp postgresqldatabase.cpp
> postgresqlcursorprivate.cpp postgresqldatabaseprivate.cpp)
> LINK_LIBRARIES(${PATH_OF_LIB_ABSTRACT} ${PATH_OF_LIB_POSTGRESQL} $
> {PATH_OF_LIB_CRYPTO} ${PATH_OF_LIB_SSL} ${PATH_OF_LIB_KRB5})
> ADD_LIBRARY(postgresqldriver SHARED ${POSTGRESQL_SOURCES})
> </snip>
>
> It wall works fine - MESSAGE(${POSTGRESQLHEADERS}) echos the correct
> path...
> But during my make run I get this:
>
> /Volumes/Files/Users/cmk/cppp/cmksql/postgresqldriver/
> postgresqlcursor.h:22:23:
> error: libpq-fe.h: No such file or directory
>
> Why is that?
>
> TIA
>
>
> -----------------------------------
> Cheers, Christian Kienle
> http://www.QtForum.org
> http://www.KDE-Forum.org
> http://cmk.navorski.com - an abstract SQL library
>
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/cmake/attachments/20050512/d1f9da58/attachment-0001.pgp


More information about the CMake mailing list