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

Javier Martinez javier at jmartinez.org
Wed Aug 5 20:41:50 PDT 2009


Yonggang,

Did you get any errors while building the project with CMake? Check the 
log just in case. What target are you trying to build? Is this a recent 
problem?

I'm using VS2008 and haven't had any problem building Clang + LLVM for 
x86 or the custom target that I'm working on.

Thanks,
Javier

On 8/5/2009 7:57 PM, 罗勇刚(Yonggang Luo)  wrote:
> 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
>>>
>>>        
>>      
>    



More information about the llvm-dev mailing list