MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0009670 | CMake | CMake | public | 2009-10-06 23:11 | 2014-06-02 08:37 |
Reporter | Philip Lowman | ||||
Assigned To | Brad King | ||||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | OS | OS Version | |||
Product Version | CMake-2-8 | ||||
Target Version | Fixed in Version | CMake 2.8.12 | |||
Summary | 0009670: [PATCH] CMake fails to escape quotes in CMAKE_C_FLAGS during try_compile() | ||||
Description | In generating CMakeLists.txt for a try_compile() CMake does not properly escape quotes present in CMAKE_C_FLAGS. This can lead to CMAKE_C_FLAGS being outputted as a list, rather than a string, which likely will lead to a compilation error. Example: set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /FI\"C:/Temp/TryCompile Escape Bug/force_foo.h\"") include(TestBigEndian) TEST_BIG_ENDIAN(AM_BIG_ENDIAN) Output of CMakeLists.txt: <snip> SET(CMAKE_C_FLAGS " /DWIN32 /D_WINDOWS /W3 /Zm1000 /FI"C:/Temp/TryCompile Escape Bug/blah/hi.h" ${COMPILE_DEFINITIONS}") </snip> Patch is attached This problem can be worked around by deferring the manipulation of CMAKE_{C,CXX}_FLAGS until after all compilation tests have completed. | ||||
Steps To Reproduce | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | escape_cmake_c_flags.patch (784) 2009-10-06 23:11 https://public.kitware.com/Bug/file/2535/escape_cmake_c_flags.patch | ||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2009-10-06 23:11 | Philip Lowman | New Issue | |||
2009-10-06 23:11 | Philip Lowman | File Added: escape_cmake_c_flags.patch | |||
2009-10-21 21:39 | Bill Hoffman | Status | new => assigned | ||
2009-10-21 21:39 | Bill Hoffman | Assigned To | => Brad King | ||
2009-10-22 08:46 | Brad King | Note Added: 0018172 | |||
2012-08-13 10:37 | Brad King | Status | assigned => backlog | ||
2012-08-13 10:37 | Brad King | Note Added: 0030532 | |||
2013-11-02 11:24 | Stephen Kelly | Note Added: 0034333 | |||
2013-11-02 11:24 | Stephen Kelly | Status | backlog => resolved | ||
2013-11-02 11:24 | Stephen Kelly | Fixed in Version | => CMake 2.8.12 | ||
2013-11-02 11:24 | Stephen Kelly | Resolution | open => fixed | ||
2014-06-02 08:37 | Robert Maynard | Note Added: 0035994 | |||
2014-06-02 08:37 | Robert Maynard | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|