1
0

CMakeDetermineASM_NASMCompiler.cmake 1.0 KB

123456789101112131415161718192021222324252627
  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. # Find the nasm assembler. yasm (http://www.tortall.net/projects/yasm/) is nasm compatible
  14. SET(CMAKE_ASM_NASM_COMPILER_INIT nasm yasm)
  15. IF(NOT CMAKE_ASM_NASM_COMPILER)
  16. FIND_PROGRAM(CMAKE_ASM_NASM_COMPILER nasm
  17. "$ENV{ProgramFiles}/NASM")
  18. ENDIF(NOT CMAKE_ASM_NASM_COMPILER)
  19. # Load the generic DetermineASM compiler file with the DIALECT set properly:
  20. SET(ASM_DIALECT "_NASM")
  21. INCLUDE(CMakeDetermineASMCompiler)
  22. SET(ASM_DIALECT)