[CMake] BundleUtilities not working

Brad King brad.king at kitware.com
Tue Jul 28 13:04:55 EDT 2015


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



More information about the CMake mailing list