[LLVMdev] MSVC can't Inlcude *.inc files properly

罗勇刚(Yonggang Luo) luoyonggang at gmail.com
Wed Aug 5 19:57:45 PDT 2009


I means visual studio c++ 2008, do you build clang+llvm with .sln
files, and these files are generated by cmake? I do of that. And
because vs c++ can't recognize path such a:/filepath/.. Properlyn it's
recognized as a:/filepath

So we need change /.. to /../ or /../.

2009/8/6, Daniel Dunbar <daniel at zuster.org>:
> 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
>>
>

-- 
从我的移动设备发送

         此致
礼
罗勇刚
Yours
    sincerely,
Yonggang Luo




More information about the llvm-dev mailing list