View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0012342CMakeCMakepublic2011-07-15 04:182012-02-06 06:07
ReporterJohan Björk 
Assigned ToAlex Neundorf 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product VersionCMake 2.8.5 
Target VersionCMake 2.8.6Fixed in VersionCMake 2.8.6 
Summary0012342: Using set_property(...APPEND) for COMPILE_FLAGS result in semicolons in the build command line
DescriptionADD_EXECUTABLE(foo foo.c)
SET_PROPERTY(TARGET foo APPEND PROPERTY COMPILE_FLAGS "-x c++")
SET_PROPERTY(TARGET foo APPEND PROPERTY COMPILE_FLAGS "-fPIC")
demonstrates the problem. Tested with the makefile generator.
TagsNo tags attached.
Attached Files

 Relationships
related to 0012327closedKitware Robot Appending Multiple COMPILE_FLAGS Produces Unexpected Results 

  Notes
(0027041)
Alex Neundorf (developer)
2011-07-15 15:00

I just pushed a branch SetPropertyAppendString to the next branch.
There set_property() has the new option APPEND_STRING, which can be used instead of APPEND, then the new value is simply appended to the existing string, instead of being appended as a new element to a list.
(0027042)
Bill Hoffman (manager)
2011-07-15 15:16

Not directly related to this, but you can set the language on a source file in a cross platform/compiler way:

http://www.cmake.org/cmake/help/cmake-2-8-docs.html#prop_sf:LANGUAGE [^]

http://www.cmake.org/cmake/help/cmake-2-8-docs.html#command:set_source_files_properties [^]

Set the language to CXX.
(0028504)
David Cole (manager)
2012-02-06 06:07

Closing resolved issues that have not been updated in more than 4 months.

 Issue History
Date Modified Username Field Change
2011-07-15 04:18 Johan Björk New Issue
2011-07-15 14:59 Alex Neundorf Assigned To => Alex Neundorf
2011-07-15 14:59 Alex Neundorf Status new => assigned
2011-07-15 15:00 Alex Neundorf Note Added: 0027041
2011-07-15 15:01 Alex Neundorf Severity major => minor
2011-07-15 15:01 Alex Neundorf Status assigned => resolved
2011-07-15 15:01 Alex Neundorf Resolution open => fixed
2011-07-15 15:01 Alex Neundorf Relationship added related to 0012327
2011-07-15 15:16 Bill Hoffman Note Added: 0027042
2011-09-12 17:14 David Cole Fixed in Version => CMake 2.8.6
2011-09-12 17:14 David Cole Target Version => CMake 2.8.6
2012-02-06 06:07 David Cole Note Added: 0028504
2012-02-06 06:07 David Cole Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team