CMakeTestCompilerCommon.cmake 894 B

123456789101112131415161718192021
  1. #=============================================================================
  2. # Copyright 2010 Kitware, Inc.
  3. #
  4. # Distributed under the OSI-approved BSD License (the "License");
  5. # see accompanying file Copyright.txt for details.
  6. #
  7. # This software is distributed WITHOUT ANY WARRANTY; without even the
  8. # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  9. # See the License for more information.
  10. #=============================================================================
  11. # (To distribute this file outside of CMake, substitute the full
  12. # License text for the above reference.)
  13. function(PrintTestCompilerStatus LANG MSG)
  14. if(CMAKE_GENERATOR MATCHES Make)
  15. message(STATUS "Check for working ${LANG} compiler: ${CMAKE_${LANG}_COMPILER}${MSG}")
  16. else()
  17. message(STATUS "Check for working ${LANG} compiler using: ${CMAKE_GENERATOR}${MSG}")
  18. endif()
  19. endfunction()