MantisBT - CMake | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0008776 | CMake | CMake | public | 2009-03-21 19:57 | 2016-06-10 14:30 |
| Reporter | Daniel Nelson | ||||
| Assigned To | Bill Hoffman | ||||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | moved | ||
| Platform | OS | OS Version | |||
| Product Version | CMake-2-6 | ||||
| Target Version | Fixed in Version | ||||
| Summary | 0008776: Source files should have a modern COMPILE_OPTIONS property. | ||||
| Description | [Original title: Using set_property() on COMPILE_FLAGS with multiple options results in bad command in Makefiles] If you have a CMakeLists.txt with a line like this: set_property(SOURCE main.cpp PROPERTY COMPILE_FLAGS -Werror -Wall) You will get a build command in build.make: /usr/bin/c++ $(CXX_DEFINES) $(CXX_FLAGS) -Werror;-Wall -o CMakeFiles/bug.dir/main.cpp.o -c /home/torham/src/cmake/prop_bug/main.cpp The two options are added with a ; instead of a space, and sh will try to execute the second command '-Wall' You can avoid this by doing some escaping in the CMakeLists.txt yourself, but it would be nicer if this wasn't necessary: set_property(SOURCE main.cpp PROPERTY COMPILE_FLAGS "\"-Werror\" \"-Wall\"") This might effect similar commands too. | ||||
| Steps To Reproduce | |||||
| Additional Information | |||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | |||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2009-03-21 19:57 | Daniel Nelson | New Issue | |||
| 2009-03-22 21:54 | Bill Hoffman | Note Added: 0015750 | |||
| 2009-03-22 21:54 | Bill Hoffman | Status | new => assigned | ||
| 2009-03-22 21:54 | Bill Hoffman | Assigned To | => Bill Hoffman | ||
| 2009-03-24 18:28 | Daniel Nelson | Note Added: 0015795 | |||
| 2013-11-02 10:22 | Stephen Kelly | Note Added: 0034324 | |||
| 2013-11-02 10:22 | Stephen Kelly | Summary | Using set_property() on COMPILE_FLAGS with multiple options results in bad command in Makefiles => Source files should have a modern COMPILE_OPTIONS property. | ||
| 2013-11-02 10:22 | Stephen Kelly | Description Updated | bug_revision_view_page.php?rev_id=1306#r1306 | ||
| 2016-06-10 14:27 | Kitware Robot | Note Added: 0041523 | |||
| 2016-06-10 14:27 | Kitware Robot | Status | assigned => resolved | ||
| 2016-06-10 14:27 | Kitware Robot | Resolution | open => moved | ||
| 2016-06-10 14:30 | Kitware Robot | Status | resolved => closed | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||