[CMake] Issue with CMakeDetermineASMCompiler.cmake on 2.8.3
Emmanuel Blot
eblot.ml at gmail.com
Mon Jan 10 09:48:24 EST 2011
Hello,
I'm not sure if this issue has already been reported, but ithe
following command:
ENABLE_LANGUAGE (ASM-ATT OPTIONAL)
Triggers the following error, starting at CMake 2.8.3 (worked well up to 2.8.2):
CMake Error at
cmake/Modules/CMakeDetermineASMCompiler.cmake:68
(CMAKE_DETERMINE_COMPILER_ID_VENDOR):
Unknown CMake command "CMAKE_DETERMINE_COMPILER_ID_VENDOR".
Call Stack (most recent call first):
cmake/Modules/CMakeDetermineASM-ATTCompiler.cmake:19 (INCLUDE)
CMakeLists.txt:100 (ENABLE_LANGUAGE)
CMake Error: Error required internal CMake variable not set, cmake may
be not be built correctly.
Missing variable is:
CMAKE_ASM-ATT_COMPILER_ENV_VAR
CMake Error: Could not find cmake module
file:CMakeFiles/CMakeASM-ATTCompiler.cmake
-- Configuring incomplete, errors occurred!
Compilation failed
It seems that adding the following patch fixes the issue:
Index: CMakeDetermineASMCompiler.cmake
===================================================================
--- a/CMakeDetermineASMCompiler.cmake 2010-12-07 23:49:13.000000000 +0100
+++ b/CMakeDetermineASMCompiler.cmake 2010-12-07 23:49:03.000000000 +0100
@@ -65,6 +65,7 @@
SET(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_FLAGS_GNU "--version")
SET(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_REGEX_GNU "GNU assembler")
+ INCLUDE(${CMAKE_ROOT}/Modules/CMakeDetermineCompilerId.cmake)
CMAKE_DETERMINE_COMPILER_ID_VENDOR(ASM${ASM_DIALECT})
IF(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID)
Cheers,
Manu
More information about the CMake
mailing list