Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to keep generated temporary files?

Tags:

cmake

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.

like image 866
Velkan Avatar asked Jun 30 '16 06:06

Velkan


People also ask

Can you save temporary files?

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.

How do I stop tmp files being created?

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.

Do temp files get deleted automatically?

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.

Do I need to keep any temp files?

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.


1 Answers

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.

like image 91
Florian Avatar answered Oct 17 '22 04:10

Florian