Use the same pattern as CMake's CHECK_CXX_COMPILER_FLAG and similar
functions to avoid executing these tests every time a project is
reconfigured. These tests only need to run if the compiler changes and
CMake automatically invalidates all cached data when that happens.
Use the same pattern as CMake's CHECK_CXX_COMPILER_FLAG and similar functions to avoid executing these tests every time a project is reconfigured. These tests only need to run if the compiler changes and CMake automatically invalidates all cached data when that happens.