[cmake-developers] [CMake 0013116]: Cmake Nmake generator generate empty /MACHINE:for first run under a project
Mantis Bug Tracker
mantis at public.kitware.com
Mon Apr 9 22:42:51 EDT 2012
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=13116
======================================================================
Reported By: hume npx
Assigned To:
======================================================================
Project: CMake
Issue ID: 13116
Category: CMake
Reproducibility: always
Severity: major
Priority: normal
Status: new
======================================================================
Date Submitted: 2012-04-09 22:42 EDT
Last Modified: 2012-04-09 22:42 EDT
======================================================================
Summary: Cmake Nmake generator generate empty /MACHINE:for
first run under a project
Description:
Cmake Nmake generator generate empty /MACHINE: for first run under a folder that
make the compilation failed, if delete the folder contents and run the same
cmake command again, then everything works as expected and /MACHINE:x86 is
properly generated in the makefiles.
Steps to Reproduce:
t.c
#include <stdio.h>
/* main entry */
int
#if defined(_MSC_VER)
__cdecl
#endif
main(int argc, char *argv[]) {
printf("Hello world!\n");
return 0;
}
CMakeLists.txt
cmake_minimum_required(VERSION 2.8)
project(test)
add_executable(test t.c)
then bring up cmd prompt and run under the folder:
cmake -G "NMake Makefiles" .
would result error if you run nmake
delete all the generated temp files and run the above step again, everything
worked.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2012-04-09 22:42 hume npx New Issue
======================================================================
More information about the cmake-developers
mailing list