Notes |
|
(0024737)
|
Brad King
|
2011-01-17 07:39
|
|
|
|
(0024738)
|
Brad King
|
2011-01-17 07:41
|
|
There are also a bunch of comments about it for our reference here:
http://cmake.org/gitweb?p=cmake.git;a=blob;f=Tests/Preprocess/CMakeLists.txt;hb=v2.8.3 [^]
Back when I implemented COMPILE_DEFINITIONS I tried to get every key on the US keyboard to pass through definitions correctly on all supported build systems. Semicolon is basically impossible to do everywhere.
I suggest using configure_file to put the definition directly in a header. |
|
|
(0024739)
|
Brad King
|
2011-01-17 08:25
|
|
> there doesn't seem to be a way to escape the semicolon so that cmake ignores
it.
Either of these works:
set_property(DIRECTORY PROPERTY COMPILE_DEFINITIONS "PATH_SEP=\"\;\"")
OR
add_definitions( "-DPATH_SEP=\"\;\"") |
|
|
(0024740)
|
Brad King
|
2011-01-17 08:30
|
|
|
|
(0024748)
|
Andreas Pakulat
|
2011-01-17 09:56
|
|
Indeed that version does work, should've thought about that earlier :| |
|
|
(0024750)
|
Brad King
|
2011-01-17 10:02
|
|
Closing as "not fixable" because the semicolon really can't be made to work everywhere. The documentation update is a good "fix" though. |
|