View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0011755CMakeCMakepublic2011-01-25 21:042016-06-10 14:31
ReporterDongsheng Song 
Assigned ToKitware Robot 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionmoved 
PlatformWindowsOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0011755: CMake 2.8.3 with msvc can not process CFLAGS and LDFLAGS correctly
Description!)CFLAGS
When I set CFLAGS with double quotation marks:
SET CFLAGS=/nologo /W3 /EHsc /O2 /Oy- /Zi /D"_WIN32_WINNT=0x0502" /D"WIN32_LEAN_AND_MEAN=1"

Then cmake can issued invalid command lines like this:

CL.EXE /nologo /nologo /W3 /EHsc /O2 /Oy- /Zi /D;_WIN32_WINNT=0x0502" /D"WIN32_LEAN_AND_MEAN=1" /DWIN32 /D_WINDOWS /W3 /Zm1000 -DCHECK_FUNCTION_EXISTS=exp" /D_DEBUG /MDd /Zi /Ob0 /Od /GZ /FoCMakeFiles\cmTryCompileExec.dir\CheckFunctionExists.c.obj /FdC:\var\tmp\CMakeFiles\CMakeTmp\cmTryCompileExec.pdb -c C:\opt\CMake-2.8\share\cmake-2.8\Modules\CheckFunctionExists.c

This first double quotation mark was replaced by semicolon (" => ;) !!!

But after I changed to with the following line, no errors:
SET CFLAGS=/nologo /W3 /EHsc /O2 /Oy- /Zi /D_WIN32_WINNT=0x0502 /DWIN32_LEAN_AND_MEAN=1

2)LDFLAGS
SET LDFLAGS=/OPT:ICF,REF /MACHINE:X86 /SUBSYSTEM:CONSOLE /RELEASE

Cmake still issued invalid command lines like this:

CL.EXE /nologo @CMakeFiles\cmTryCompileExec.dir\objects1.rsp /DWIN32 /D_WINDOWS /W3 /Zm1000 /GX /GR /D_DEBUG /MDd /Zi /Ob0 /Od /GZ /FecmTryCompileExec.exe /FdC:\var\tmp\CMakeFiles\CMakeTmp\cmTryCompileExec.pdb -link /implib:cmTryCompileExec.lib /version:0.0 /STACK:10000000 /machine:X86;/OPT:ICF,REF /MACHINE:X86 /SUBSYSTEM:CONSOLE /RELEASE /debug /pdbtype:sept /INCREMENTAL:YES /subsystem:console kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib

/machine:X86;/OPT:ICF,REF should be /machine:X86 /OPT:ICF,REF !!!
Steps To ReproduceSee description.
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0030221)
David Cole (manager)
2012-08-11 11:09

Sending old, never assigned issues to the backlog.

(The age of the bug, plus the fact that it's never been assigned to anyone means that nobody is actively working on it...)

If an issue you care about is sent to the backlog when you feel it should have been addressed in a different manner, please bring it up on the CMake mailing list for discussion. Sign up for the mailing list here, if you're not already on it: http://www.cmake.org/mailman/listinfo/cmake [^]

It's easy to re-activate a bug here if you can find a CMake developer who has the bandwidth to take it on, and ferry a fix through to our 'next' branch for dashboard testing.
(0041785)
Kitware Robot (administrator)
2016-06-10 14:28

Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.

 Issue History
Date Modified Username Field Change
2011-01-25 21:04 Dongsheng Song New Issue
2012-08-11 11:09 David Cole Status new => backlog
2012-08-11 11:09 David Cole Note Added: 0030221
2016-06-10 14:28 Kitware Robot Note Added: 0041785
2016-06-10 14:28 Kitware Robot Status backlog => resolved
2016-06-10 14:28 Kitware Robot Resolution open => moved
2016-06-10 14:28 Kitware Robot Assigned To => Kitware Robot
2016-06-10 14:31 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team