diff options
author | Alexander Neundorf <neundorf@kde.org> | 2008-11-05 17:27:41 -0500 |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2008-11-05 17:27:41 -0500 |
commit | 19046aa98c863c8ed2e957f0ddd404b60577be85 (patch) | |
tree | 9a5c5b48a25a261fcfff24ef396e3046c445a531 /Modules/CMakeDetermineASM_MASMCompiler.cmake | |
parent | 49db4e53a1e351278bc8e93bf004510e71804486 (diff) | |
download | cmake-19046aa98c863c8ed2e957f0ddd404b60577be85.tar.gz |
ENH: add support for the MS masm and masm64 assemblers, works with nmake,
not (yet) with the Visual Studio generators
Alex
Diffstat (limited to 'Modules/CMakeDetermineASM_MASMCompiler.cmake')
-rw-r--r-- | Modules/CMakeDetermineASM_MASMCompiler.cmake | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Modules/CMakeDetermineASM_MASMCompiler.cmake b/Modules/CMakeDetermineASM_MASMCompiler.cmake new file mode 100644 index 0000000000..3b72e072b8 --- /dev/null +++ b/Modules/CMakeDetermineASM_MASMCompiler.cmake @@ -0,0 +1,13 @@ +# Find the MS assembler (masm or masm64) + +SET(ASM_DIALECT "_MASM") + +# if we are using the 64bit cl compiler, assume we also want the 64bit assembler +IF(CMAKE_CL_64) + SET(CMAKE_ASM${ASM_DIALECT}_COMPILER_INIT ml64) +ELSE(CMAKE_CL_64) + SET(CMAKE_ASM${ASM_DIALECT}_COMPILER_INIT ml) +ENDIF(CMAKE_CL_64) + +INCLUDE(CMakeDetermineASMCompiler) +SET(ASM_DIALECT) |