[CMake] comparing variable contents

Tyler Roscoe tyler at cryptio.net
Tue Sep 29 13:08:33 EDT 2009


On Tue, Sep 29, 2009 at 10:56:45AM -0600, Steven Wilson wrote:
> Is there a way to compare the contents of one variable with another?   I'm
> looking for something like:
> if(${FOO} EQUAL ${BAR})

Did you read the docs for the if() command?

cmake --help-command if


tyler


More information about the CMake mailing list