How to force it to keep temporaries like CMakeFiles/cmTC_66ca1.dir/link.txt
or CMakeFiles/cmTC_66ca1.dir/testCCompiler.c.obj
?
There is an error with the
The C compiler is not able to compile a simple test program
but all necessary files to launch commands separately are gone. It's very hard to analyze that.
Temporary Files are also created for backup purposes, by programs. For instance, Microsoft Office saves a Temporary File of the open document every few minutes. If you save the document and exit, the Temporary File gets deleted. If the program crashes unexpectedly, the Temporary File is not deleted.
Turn on the Storage sense option on the right. On the right, click on the Configure Storage Sense or run it now link. On the next page, navigate to the Temporary files section. Turn off (uncheck) the option Delete temporary files that my apps aren't using.
Most of the temporary files that the system uses are deleted automatically after the task is complete. But there can be some files which stay in your storage for future use. The same can apply for your daily use programs which need these temporary files to complete operations and tasks faster for the users.
There's nothing harmful about temporary files, but once the cached data they contain has served its purpose, they're no longer needed. Ideally, unneeded temp files should be deleted by the process or program that created them.
Call CMake with --debug-trycompile
cmake --debug-trycompile ...
Do not delete the try_compile build tree. Only useful on one try_compile at a time.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With