[cmake-developers] Combining ABI and Feature checks (was: Compiler features/extensions remaining/future issues)

Brad King brad.king at kitware.com
Mon Jun 9 10:05:26 EDT 2014


Steve,

On 06/08/2014 06:56 PM, Ben Boeckel wrote:
> 9) Performance

Ben's concerns are more important than the following, but I also
wonder if we can reduce the startup time by combining the ABI
and Feature checks:

  # Try to identify the ABI and configure it into CMakeCCompiler.cmake
  include(${CMAKE_ROOT}/Modules/CMakeDetermineCompilerABI.cmake)
  CMAKE_DETERMINE_COMPILER_ABI(C ${CMAKE_ROOT}/Modules/CMakeCCompilerABI.c)
  # Try to identify the compiler features
  include(${CMAKE_ROOT}/Modules/CMakeDetermineCompileFeatures.cmake)
  CMAKE_DETERMINE_COMPILE_FEATURES(C)

into a single try-compile.

Thanks,
-Brad




More information about the cmake-developers mailing list