Re: [CMake] Double Substitution in IF Statement

2009-11-19 Thread Michael Wild
No, it should be empty because he wants to test whether HELLO is in LIBS. But inside the IF statement, the ${VALUE} that evaluates to LIB (a member of LIBS) gets then expanded again to HELLO. Quite funny actually. However, reading the manpage closely only the left-hand value of STREQUAL get

Re: [CMake] Double Substitution in IF Statement

2009-11-19 Thread Marcel Loose
Hi Aaron, If I run your script (using CMake 2.6.2) I get -- CONTAINS_LIB = TRUE as output. Isn't that what you expected? If not, then I'm missing the point of your macro LIST_CONTAINS. What version of CMake are you using? Best regards, Marcel Loose. On Wed, 2009-11-18 at 09:54 -0800, aaron_wri

[CMake] Double Substitution in IF Statement

2009-11-18 Thread Aaron_Wright
I have a little question about how to prevent double substitution in an IF statement. Consider this macro that looks through a list for a string, and sets a variable to TRUE if it is found. The problem I have is that the IF statement substitutes ${VALUE2} with LIB, and then substitutes LIB with