boost-cmake icon indicating copy to clipboard operation
boost-cmake copied to clipboard

Store result of try compile in cache variable?

Open jdumas opened this issue 3 years ago • 0 comments

Hi,

Those try_compile are quite expensive to re-run each time CMake is called: https://github.com/Orphis/boost-cmake/blob/70b12f62da331dd402b78102ec8f6a15d59a7af9/libs/log.cmake#L65

It would be better to store the result in a CACHE variable (using a prefix to avoid collisions), to speed up project reconfiguration.

jdumas avatar Jan 13 '21 23:01 jdumas