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
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to