View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0010695CMakeCMakepublic2010-05-09 23:312010-05-11 09:28
Reporterhumeafo 
Assigned ToBill Hoffman 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionunable to reproduce 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0010695: Cmake vs2010 NMake Makefiles generator /machine defect
Descriptioncmake_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
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0020690)
humeafo (reporter)
2010-05-09 23:40

cmake version is 2.8.1
(0020700)
Bill Hoffman (manager)
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 (reporter)
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.

 Issue History
Date Modified Username Field Change
2010-05-09 23:31 humeafo New Issue
2010-05-09 23:40 humeafo Note Added: 0020690
2010-05-10 15:33 Bill Hoffman Note Added: 0020700
2010-05-10 15:33 Bill Hoffman Status new => assigned
2010-05-10 15:33 Bill Hoffman Assigned To => Bill Hoffman
2010-05-10 23:17 humeafo Note Added: 0020706
2010-05-11 09:28 Bill Hoffman Status assigned => closed
2010-05-11 09:28 Bill Hoffman Resolution open => unable to reproduce


Copyright © 2000 - 2018 MantisBT Team