[CMake] Configuring .bat file with native path under windows

Andy Lego andy at legoandy.com
Tue Oct 14 10:48:30 EDT 2008


Hi,

Look at FILE and STRING commands.

Andy

On Tue, Oct 14, 2008 at 7:29 AM, Nicolas Desprès
<nicolas.despres at gmail.com>wrote:

> Hi everyone,
>
> I'm using cmake 2.6.2 for win32 and I'm trying to configure a .bat
> file. I use a couple of cmake variable in my .bat.in template such as
> CMAKE_CURRENT_BINARY_DIR. The problem is that I have to convert every
> variable used in the template and containing a cmake path to a native
> path before to configure the file. Currently, I'm using a wrapper
> around configure_file to do the tricks but it is very cumbersome.
>
> Does any one know a better way to deal with this issue?
> Is there any chance to have an option to configure_file that do the tricks?
>
> Best regards,
>
> --
> Nicolas Desprès
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>



-- 
Lets bike the world together
http://legoandy.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20081014/61e5ef58/attachment.htm>


More information about the CMake mailing list