On 08/26/2015 03:35 AM, Kislinskiy, Stefan wrote:
> Would you prefer to have a switch for each *_DIR variable for all
> target steps, or a common switch but for each target step, like
> the new USE_TERMINAL switches in the master?
[snip]
> Von: CHEVRIER, Marc [[email protected]]
> Offering the possibility to manage native paths in an easy way
> is a very good enhancement
Another approach is to introduce a generator expression to transform
the path slash style. Then it could be used both for ExternalProject
and in other custom commands. E.g.
$<PATH_FOR_SHELL:<SOURCE_DIR>/bootstrap${shell_ext}>
In this case <SOURCE_DIR> would be replaced with forward slashes
by ExternalProject but then at generate time CMake would evaluate
the genex to convert slashes as needed.
-Brad
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to support the CMake community. For more
information on each offering, please visit:
CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers