summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeASMInformation.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-02-27 18:08:05 (GMT)
committerBrad King <brad.king@kitware.com>2009-02-27 18:08:05 (GMT)
commit19d9c824a83b27cd3f875ef8370e8438cc88515c (patch)
tree01cad26f7c0d61ff58b7e84c358e566583ffa008 /Modules/CMakeASMInformation.cmake
parentb41c8fe23e522106f932a7f10f6d72dd38879854 (diff)
downloadCMake-19d9c824a83b27cd3f875ef8370e8438cc88515c.zip
CMake-19d9c824a83b27cd3f875ef8370e8438cc88515c.tar.gz
CMake-19d9c824a83b27cd3f875ef8370e8438cc88515c.tar.bz2
BUG: Fix ASM source file extension default list
This replaces @ASM_DIALECT@ syntax with ${ASM_DIALECT} syntax so it will be replaced correctly. Patch from Derek Bruening. See issue #8639.
Diffstat (limited to 'Modules/CMakeASMInformation.cmake')
-rw-r--r--Modules/CMakeASMInformation.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/CMakeASMInformation.cmake b/Modules/CMakeASMInformation.cmake
index 95a0645..cef1e78 100644
--- a/Modules/CMakeASMInformation.cmake
+++ b/Modules/CMakeASMInformation.cmake
@@ -28,9 +28,9 @@ IF(NOT _INCLUDED_FILE)
INCLUDE(Platform/${CMAKE_SYSTEM_NAME}-${CMAKE_C_COMPILER_ID}-ASM OPTIONAL)
ENDIF(NOT _INCLUDED_FILE)
-IF(NOT CMAKE_ASM@ASM_DIALECT@_SOURCE_FILE_EXTENSIONS)
- SET(CMAKE_ASM@ASM_DIALECT@_SOURCE_FILE_EXTENSIONS s;S;asm)
-ENDIF(NOT CMAKE_ASM@ASM_DIALECT@_SOURCE_FILE_EXTENSIONS)
+IF(NOT CMAKE_ASM${ASM_DIALECT}_SOURCE_FILE_EXTENSIONS)
+ SET(CMAKE_ASM${ASM_DIALECT}_SOURCE_FILE_EXTENSIONS s;S;asm)
+ENDIF(NOT CMAKE_ASM${ASM_DIALECT}_SOURCE_FILE_EXTENSIONS)
IF(NOT CMAKE_ASM${ASM_DIALECT}_COMPILE_OBJECT)
SET(CMAKE_ASM${ASM_DIALECT}_COMPILE_OBJECT "<CMAKE_ASM${ASM_DIALECT}_COMPILER> <FLAGS> -o <OBJECT> <SOURCE>")