MantisBT - CMake | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0011695 | CMake | CMake | public | 2011-01-13 19:51 | 2011-05-02 14:46 |
| Reporter | Vladislav Vaintroub | ||||
| Assigned To | David Cole | ||||
| Priority | normal | Severity | major | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Platform | OS | OS Version | |||
| Product Version | CMake-2-8 | ||||
| Target Version | CMake 2.8.4 | Fixed in Version | CMake 2.8.4 | ||
| Summary | 0011695: rc.exe error in 2.8.4-rc1 if ADD_DEFINITITIONS contains definition with space | ||||
| Description | If add definition contains string with space character, build using VS2010 (or maybe also other VS) would fail with rc.exe error Example project: cmake_minimum_required(VERSION 2.6) ADD_DEFINITIONS(-DMYSQL_DATADIR="data 1") ADD_EXECUTABLE(main main.cc versioninfo_exe.rc) Output of cmake --build . --config debug ... ResourceCompile: C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\rc.exe /D WIN32 /D _WI NDOWS /D _DEBUG /D "MYSQL_DATADIR=\"data 1\"" /D "CMAKE_INTDIR=\"Debug\"" /l"0x0 409" /nologo /fo"main.dir\Debug\versioninfo_exe.res" ..\versioninfo_exe.rc Microsoft (R) Windows (R) Resource Compiler Version 6.1.7600.16385 Copyright (C) Microsoft Corporation. All rights reserved. RC : fatal error RC1107: invalid usage; use RC /? for Help [H:\bzr\repro\yyy\mai n.vcxproj] | ||||
| Steps To Reproduce | unpack attached repro.zip, try to build with VS2010 generator | ||||
| Additional Information | Very interesting, if I omit cmake_minimum_required(VERSION 2.6) altogether, the error does not happen. The command line for rc.exe in case cmake_minimum_required is NOT set contains /D "MYSQL_DATADIR=data 1" If cmake_minimum_required is set, command line changes to /D "MYSQL_DATADIR=\"data 1\"" | ||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | https://public.kitware.com/Bug/file/3622/repro.zip | ||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2011-01-13 19:51 | Vladislav Vaintroub | New Issue | |||
| 2011-01-13 19:51 | Vladislav Vaintroub | File Added: repro.zip | |||
| 2011-01-14 08:34 | Brad King | Note Added: 0024673 | |||
| 2011-01-14 08:38 | Brad King | Note Added: 0024674 | |||
| 2011-01-17 17:01 | David Cole | Assigned To | => David Cole | ||
| 2011-01-17 17:01 | David Cole | Status | new => assigned | ||
| 2011-01-17 17:01 | David Cole | Target Version | => CMake 2.8.4 | ||
| 2011-01-17 17:01 | David Cole | Description Updated | bug_revision_view_page.php?rev_id=137#r137 | ||
| 2011-01-20 07:05 | David Cole | Assigned To | David Cole => Bill Hoffman | ||
| 2011-01-25 19:08 | David Cole | Assigned To | Bill Hoffman => David Cole | ||
| 2011-01-25 19:08 | David Cole | Note Added: 0025076 | |||
| 2011-01-25 19:08 | David Cole | Status | assigned => resolved | ||
| 2011-01-25 19:08 | David Cole | Fixed in Version | => CMake 2.8.4 | ||
| 2011-01-25 19:08 | David Cole | Resolution | open => fixed | ||
| 2011-01-26 08:41 | David Cole | Note Added: 0025078 | |||
| 2011-01-26 08:42 | David Cole | Note Edited: 0025078 | bug_revision_view_page.php?bugnote_id=25078#r174 | ||
| 2011-05-02 14:46 | David Cole | Note Added: 0026375 | |||
| 2011-05-02 14:46 | David Cole | Status | resolved => closed | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||