CMakeDetermineASM_MASMCompiler.cmake 964 B

123456789101112131415161718192021222324252627
  1. #=============================================================================
  2. # Copyright 2008-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. # Find the MS assembler (masm or masm64)
  14. SET(ASM_DIALECT "_MASM")
  15. # if we are using the 64bit cl compiler, assume we also want the 64bit assembler
  16. IF(CMAKE_CL_64)
  17. SET(CMAKE_ASM${ASM_DIALECT}_COMPILER_INIT ml64)
  18. ELSE(CMAKE_CL_64)
  19. SET(CMAKE_ASM${ASM_DIALECT}_COMPILER_INIT ml)
  20. ENDIF(CMAKE_CL_64)
  21. INCLUDE(CMakeDetermineASMCompiler)
  22. SET(ASM_DIALECT)