summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeDetermineASM_NASMCompiler.cmake
blob: 2c8cda568d7c720963af33791870e05145ab77fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# Find the nasm assembler

SET(CMAKE_ASM_NASM_COMPILER_INIT nasm)

IF(NOT CMAKE_ASM_NASM_COMPILER)
  FIND_PROGRAM(CMAKE_ASM_NASM_COMPILER nasm
    "$ENV{ProgramFiles}/NASM")
ENDIF(NOT CMAKE_ASM_NASM_COMPILER)

# Load the generic DetermineASM compiler file with the DIALECT set properly:
SET(ASM_DIALECT "_NASM")
INCLUDE(CMakeDetermineASMCompiler)
SET(ASM_DIALECT)