Relative Content

Tag Archive for cmakecmake-language

CMAKE redefine a command line define

I have a CMAKE variable I define on the command line with: “-DFOO=host”
Then in my CMAKEFILE – I want to treat the name “FOO=host” as a generic for the current host, ie: ON Linux -DFOO=host would be come set(FOO “linux”), or set(FOO “Darwin”) for a Mac.

cmake error: the dependency of target dos not exist

SO stack oveflow spam check says my post is MOSTLY CODE… yea it is..
But I need to demonstrate the problem with a full example that I have
extracted from a much larger set of files so I can boil it down to
an example that demonstrates the issue. GRRR…