[CMake] INCLUDE_DIRECTORIES includes two directories appended together

Ryan Phillips ryan-cmake at trolocsis.com
Sat Sep 2 03:15:52 EDT 2006


I am having a problem when I include INCLUDE_DIRECTORIES(${SOMEVAR}) 
within my project.  The generated CFLAGS (under linux) include my 
CMAKE_SOURCE_DIR appended with my ${SOMEVAR}, ie:

SOMEVAR="/usr/include/openssl/"

upon compilation:
-I/home/rphillips/work/project/-I/usr/include/openssl

Does anyone know what is going on?

Regards
-Ryan


More information about the CMake mailing list