MantisBT - CMake
View Issue Details
0010695CMakeCMakepublic2010-05-09 23:312010-05-11 09:28
humeafo 
Bill Hoffman 
normalmajoralways
closedunable to reproduce 
 
 
0010695: Cmake vs2010 NMake Makefiles generator /machine defect
cmake_minimum_required(VERSION 2.6)

project(test)
add_executable(test tt.cpp)

using vs2010:
 
cmake -G "NMake Makefiles" ..

generated CMakeCache.txt
CMAKE_EXE_LINKER_FLAGS:STRING= /STACK:10000000 /machine:
with /machine: illegal

vs2008 is correct with /machine:X86
No tags attached.
Issue History
2010-05-09 23:31humeafoNew Issue
2010-05-09 23:40humeafoNote Added: 0020690
2010-05-10 15:33Bill HoffmanNote Added: 0020700
2010-05-10 15:33Bill HoffmanStatusnew => assigned
2010-05-10 15:33Bill HoffmanAssigned To => Bill Hoffman
2010-05-10 23:17humeafoNote Added: 0020706
2010-05-11 09:28Bill HoffmanStatusassigned => closed
2010-05-11 09:28Bill HoffmanResolutionopen => unable to reproduce

Notes
(0020690)
humeafo   
2010-05-09 23:40   
cmake version is 2.8.1
(0020700)
Bill Hoffman   
2010-05-10 15:33   
# set the stack size and the machine type
SET(_MACHINE_ARCH_FLAG ${MSVC_C_ARCHITECTURE_ID})
IF(NOT _MACHINE_ARCH_FLAG)
  SET(_MACHINE_ARCH_FLAG ${MSVC_CXX_ARCHITECTURE_ID})
ENDIF(NOT _MACHINE_ARCH_FLAG)
SET (CMAKE_EXE_LINKER_FLAGS_INIT
    "${CMAKE_EXE_LINKER_FLAGS_INIT} /STACK:10000000 /machine:${_MACHINE_ARCH_FLAG}")

Must be that MSVC_C_ARCHITECTURE_ID is not set.

Can you attach CMakeFiles/CMakeCCompiler.cmake

What is the output of the whole cmake process?
(0020706)
humeafo   
2010-05-10 23:17   
Oh, this can't be regenerated today though yesterday this can be regenerated several times, please close this thread.
If I encounter this once more, then I'll re-report.