summaryrefslogtreecommitdiff
path: root/Modules/CMakeTestASM_NASMCompiler.cmake
diff options
context:
space:
mode:
authorAlex Neundorf <neundorf@kde.org>2010-09-25 20:57:03 +0200
committerAlex Neundorf <neundorf@kde.org>2010-09-25 20:57:03 +0200
commite1fc9b902ac737c98ecaf236568d3e685ea3dce1 (patch)
treed28314fdcab124959154232ac520e1422069d770 /Modules/CMakeTestASM_NASMCompiler.cmake
parentf42bae0bd535aa62cd0b6e380251bceb16f75fb0 (diff)
downloadcmake-e1fc9b902ac737c98ecaf236568d3e685ea3dce1.tar.gz
Add support for nasm assembler, patch by Peter Collingbourne (see #10069)
Alex
Diffstat (limited to 'Modules/CMakeTestASM_NASMCompiler.cmake')
-rw-r--r--Modules/CMakeTestASM_NASMCompiler.cmake9
1 files changed, 9 insertions, 0 deletions
diff --git a/Modules/CMakeTestASM_NASMCompiler.cmake b/Modules/CMakeTestASM_NASMCompiler.cmake
new file mode 100644
index 0000000000..ba0e658be2
--- /dev/null
+++ b/Modules/CMakeTestASM_NASMCompiler.cmake
@@ -0,0 +1,9 @@
+# This file is used by EnableLanguage in cmGlobalGenerator to
+# determine that the selected ASM_NASM "compiler" works.
+# For assembler this can only check whether the compiler has been found,
+# because otherwise there would have to be a separate assembler source file
+# for each assembler on every architecture.
+
+SET(ASM_DIALECT "_NASM")
+INCLUDE(CMakeTestASMCompiler)
+SET(ASM_DIALECT)