mirror of
https://git.planet-casio.com/Lephenixnoir/fxsdk.git
synced 2025-04-15 23:47:03 +02:00
7 lines
259 B
CMake
7 lines
259 B
CMake
# Who doesn't love to deal with escaping?!
|
|
function(shell_escape _str _out)
|
|
string(REPLACE "'" "\\'" _str "${_str}")
|
|
string(REPLACE "(" "\\(" _str "${_str}")
|
|
string(REPLACE ")" "\\)" _str "${_str}")
|
|
set("${_out}" "${_str}" PARENT_SCOPE)
|
|
endfunction()
|