Daniel wrote:
James Bigler wrote:
I know you can add include paths for a single directory with INCLUDE_DIRECTORIES, but is it possible to set this for a single file with SET_SOURCE_FILES_PROPERTIES or by some other means?

Thanks,
James

You could try:

SET_SOURCE_FILES_PROPERTIES(source_file PROPERTIES
    COMPILE_FLAGS -I/include/path)

I was hoping for something a bit more portable, unless CMake magically understands -I/include/path and translates it for different compilers.

James
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to