https://github.com/Kitware/CMake
Raw File
Tip revision: b3ebb8f4344d4a3665d7be45a34773fecb94c67f authored by Brad King on 13 May 2014, 13:34:03 UTC
CMake 3.0.0-rc5
Tip revision: b3ebb8f
CMakeTestCompilerCommon.cmake

#=============================================================================
# Copyright 2010 Kitware, Inc.
#
# Distributed under the OSI-approved BSD License (the "License");
# see accompanying file Copyright.txt for details.
#
# This software is distributed WITHOUT ANY WARRANTY; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the License for more information.
#=============================================================================
# (To distribute this file outside of CMake, substitute the full
#  License text for the above reference.)

function(PrintTestCompilerStatus LANG MSG)
  if(CMAKE_GENERATOR MATCHES Make)
    message(STATUS "Check for working ${LANG} compiler: ${CMAKE_${LANG}_COMPILER}${MSG}")
  else()
    message(STATUS "Check for working ${LANG} compiler using: ${CMAKE_GENERATOR}${MSG}")
  endif()
endfunction()
back to top