[cfe-dev] MSVC can't Inlcude *.inc files properly

Daniel Dunbar daniel at zuster.org
Wed Aug 5 18:51:46 PDT 2009


I don't understand this problem, I have built clang on Windows with
the CMake generated project files without a problem. In fact, it is
even part of our buildbot.

Can you explain more about what exactly the problem is?

 - Daniel

On Wed, Aug 5, 2009 at 8:04 AM, 罗勇刚(Yonggang Luo)<luoyonggang at gmail.com> wrote:
> It's because of lib/Target/*/TargetInfo/CMakeLists.txt (* is Alpha,
> ARM and so on);
> the current line is include_directories(
> ${CMAKE_CURRENT_BINARY_DIR}/.. ${CMAKE_CURRENT_SOURCE_DIR}/.. )
> and so msvc can't find out those directory properly.
> but once I changed it to
> include_directories( ${CMAKE_CURRENT_BINARY_DIR}/../
> ${CMAKE_CURRENT_SOURCE_DIR}/../ )
> It's working.
> But I am worry about it's can't be working on unix. maybe a better format is
> include_directories( ${CMAKE_CURRENT_BINARY_DIR}/../.
> ${CMAKE_CURRENT_SOURCE_DIR}/../. )
> --
>         此致
>> 罗勇刚
> Yours
>    sincerely,
> Yonggang Luo
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>




More information about the cfe-dev mailing list