boost-cmake
boost-cmake copied to clipboard
Store result of try compile in cache variable?
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.