On 07/28/2015 12:51 PM, Bill Somerville wrote:
> The possible lack of grep is a potential issue so your read 
> back from file suggestion is interesting, is there a recognized place to 
> write temporary files like this?

IIRC the code in question runs during "cmake -P cmake_install.cmake"
scripts so CMAKE_CURRENT_BINARY_DIR may be a reasonable choice.
If for any reason you need to randomize the file name then you
could use string(RANDOM).

Since this is specific to Windows perhaps $ENV{TEMP} will be useful,
though I don't recall off the top of my head whether applications
are supposed to read that directly.  Certainly a randomized file
name would be needed if a shared temp dir were used.

-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

Reply via email to