[CMake] Examples of CMAKE_INCLUDE_TRANSFORMS or other transform rules?

Ryan Pavlik rpavlik at iastate.edu
Fri Feb 12 11:18:43 EST 2010


This seems like a bug in CMake, perhaps - file it.  I'd think it should 
convert all discovered paths from headers to cmake-style paths before 
working with them.

Ryan

On 02/12/2010 09:39 AM, Jeremy Nicholl wrote:
> Yes, I know. The problem is that it's a system header I'm not really 
> permitted to modify.
>
>
> ------------------------------------------------------------------------
> *From:* Ryan Pavlik <rpavlik at iastate.edu>
> *To:* cmake at cmake.org
> *Sent:* Thu, February 11, 2010 5:57:58 PM
> *Subject:* Re: [CMake] Examples of CMAKE_INCLUDE_TRANSFORMS or other 
> transform rules?
>
> Well, you can really just use forward slashes on all platforms - Not 
> really an answer to your direct question but might help you with the 
> underlying situation.
>
> Ryan
>
> On 02/11/2010 04:18 PM, Jeremy Nicholl wrote:
>> Are there any examples of how to create transform rules using e.g. 
>> CMAKE_INCLUDE_TRANSFORMS?
>> I'm using MSYS and I ran into an issue where one of my header files 
>> has the line
>> #include "foo\bar.h" // Note backslash
>> In this case, the dependency that gets generated simply appends 
>> "foo\bar.h" to a well-formed MSYS path with forward slashes, and that 
>> seems to mean the file cannot be found. I was wondering if I could 
>> generate a transform rule to simply switch the backslash to a forward 
>> slash for dependency generation purposes, but setting the variable 
>> does not seem to set it when the dependencies are generated (in 
>> DependInfo.cmake, it does not seem to have the variable defined).
>>
>> Thanks for your help.
>>
>> ------------------------------------------------------------------------
>> Looking for the perfect gift?* Give the gift of Flickr!* 
>> <http://www.flickr.com/gift/>
>>
>>
>> _______________________________________________
>> Powered bywww.kitware.com
>>
>> Visit other Kitware open-source projects athttp://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the CMake FAQ at:http://www.cmake.org/Wiki/CMake_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.cmake.org/mailman/listinfo/cmake
>
> -- 
> Ryan Pavlik
> HCI Graduate Student
> Virtual Reality Applications Center
> Iowa State University
>
> rpavlik at iastate.edu
> http://academic.cleardefinition.com
> Internal VRAC/HCI Site:http://tinyurl.com/rpavlik
>
> ------------------------------------------------------------------------
> Make your browsing faster, safer, and easier with the new Internet 
> Explorer® 8. Optimized for Yahoo! *Get it Now for Free! * 
> <http://downloads.yahoo.com/ca/internetexplorer/>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake

-- 
Ryan Pavlik
HCI Graduate Student
Virtual Reality Applications Center
Iowa State University

rpavlik at iastate.edu
http://academic.cleardefinition.com
Internal VRAC/HCI Site: http://tinyurl.com/rpavlik

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100212/b01a05a3/attachment.htm>


More information about the CMake mailing list