MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0011755 | CMake | CMake | public | 2011-01-25 21:04 | 2016-06-10 14:31 |
Reporter | Dongsheng Song | ||||
Assigned To | Kitware Robot | ||||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | moved | ||
Platform | Windows | OS | OS Version | ||
Product Version | |||||
Target Version | Fixed in Version | ||||
Summary | 0011755: 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 Reproduce | See description. | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
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 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|