niconiconi on Nostr: Spent half an hour trying to figure out how to escape a semicolon in CMAKE_ARGS. It's ...
Spent half an hour trying to figure out how to escape a semicolon in CMAKE_ARGS. It's a nasty problem, whenever the variable value is used to set another variable, the semicolon character becomes a list separator, so the number of escapes depends on the number of variable expansions... The solution is to use the generator expression $<SEMICOLON>... (only for CMake 3.3+).
Published at
2026-01-30 19:49:36 UTCEvent JSON
{
"id": "167d875eb09057535627056d9d289a76b09131aaf11f7e940b468ed755ee55b6",
"pubkey": "26fdcfc5f6ff27a9926ef372554241c70b1042094ec7749aa301091e34d17aa0",
"created_at": 1769802576,
"kind": 1,
"tags": [
[
"proxy",
"https://mk.absturztau.be/notes/ai4v2l6wko6g02ns",
"activitypub"
],
[
"client",
"Mostr",
"31990:6be38f8c63df7dbf84db7ec4a6e6fbbd8d19dca3b980efad18585c46f04b26f9:mostr",
"wss://relay.ditto.pub"
]
],
"content": "Spent half an hour trying to figure out how to escape a semicolon in CMAKE_ARGS. It's a nasty problem, whenever the variable value is used to set another variable, the semicolon character becomes a list separator, so the number of escapes depends on the number of variable expansions... The solution is to use the generator expression $\u003cSEMICOLON\u003e... (only for CMake 3.3+).",
"sig": "829186be1512bb96cd78e0b1a8d14a9328549d5339de515486fe7b637bd32ac4b82cb8805d0fc2796534b447f6e83df61b95172d8e2158e9a510aab2954cb421"
}