CMakeTestASMCompiler.cmake 1.1 KB

123456789101112131415161718192021222324
  1. #=============================================================================
  2. # Copyright 2007-2009 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 distributed this file outside of CMake, substitute the full
  12. # License text for the above reference.)
  13. # This file is used by EnableLanguage in cmGlobalGenerator to
  14. # determine that that selected ASM compiler can actually compile
  15. # and link the most basic of programs. If not, a fatal error
  16. # is set and cmake stops processing commands and will not generate
  17. # any makefiles or projects.
  18. IF(CMAKE_ASM${ASM_DIALECT}_COMPILER)
  19. SET(CMAKE_ASM${ASM_DIALECT}_COMPILER_WORKS 1 CACHE INTERNAL "")
  20. ELSE(CMAKE_ASM${ASM_DIALECT}_COMPILER)
  21. SET(CMAKE_ASM${ASM_DIALECT}_COMPILER_WORKS 0 CACHE INTERNAL "")
  22. ENDIF(CMAKE_ASM${ASM_DIALECT}_COMPILER)