CMakeASM-ATTInformation.cmake 1020 B

12345678910111213141516171819202122232425
  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 distribute this file outside of CMake, substitute the full
  12. # License text for the above reference.)
  13. # support for AT&T syntax assemblers, e.g. GNU as
  14. SET(ASM_DIALECT "-ATT")
  15. # *.S files are supposed to be preprocessed, so they should not be passed to
  16. # assembler but should be processed by gcc
  17. SET(CMAKE_ASM${ASM_DIALECT}_SOURCE_FILE_EXTENSIONS s;asm)
  18. SET(CMAKE_ASM${ASM_DIALECT}_COMPILE_OBJECT "<CMAKE_ASM${ASM_DIALECT}_COMPILER> <FLAGS> -o <OBJECT> <SOURCE>")
  19. INCLUDE(CMakeASMInformation)
  20. SET(ASM_DIALECT)