Priest of the Order of the Butterfly
Posts: 618 from 2004/4/15
Hi,
when I try to set some definitions with a space in cmake, cmake interprets it wrong.
Example which works:
Code:
cmake -DCMAKE_C_FLAGS="-noixemul" ../
But when I want to put some more definitions into the command line it breaks:
Code:
cmake -DCMAKE_C_FLAGS="-noixemul -mcpu=G4 -maltivec -mabi=altivec" ../
Everything after -noixemul is interpreted as path.
Maybe on MorphOS I have to escape the string value with spaces in a different way,
but I don't know how.
What I tried so far:
"-noixemul -mcpu=G4 -maltivec -mabi=altivec"
'-noixemul -mcpu=G4 -maltivec -mabi=altivec'
-noixemul\ -mcpu=G4\ -maltivec\ -mabi=altivec
Is that a cmake error on MorphOS or I am doing it wrong?
regards
eliot