User forums > General (but related to Code::Blocks)
is $if(){}{} broken in svn 7121?
ouch:
it hides the $if part but passes the rest to the command lines...
going by the wiki it says:
$if(condition){true clause}{false clause}
located at the bottom of:
http://wiki.codeblocks.org/index.php?title=Variable_expansion
has the context changed or something?
running win 7
ouch:
Can someone at least try it and see if it works for you with what ever version you have? It's breaking my build process and to fix it I have to do a lot of manual configuring.
stahta01:
I do not use the feature; but, I see no difference in how it worked for me between 10.05 and current SVN build. Tested in pre-build step.
If you want something done, post how to duplicate the problem.
Tim S
ouch:
really? it works for you?
maybe I'm using it wrong then.
in my link libraries I have this:
libSQLite3_$if($(SQLite3Ver)){$(SQLite3Ver)}{$(#sqlite3.ver)}
SQLite3Ver is created but undefined.
sqlite3.ver is equal to 3070602 (defined in global variables)
The output looks like this:
-lSQLite3_(){}{3070602}
That's not right is it? or am I placing it somewhere I shouldn't?
stahta01:
Your use is much more complex than mine. You might try using a defined/constant value as the test.
I use 1==1 in a pre-step and it looked like it worked.
No idea if it works in the Library name area.
Edit: Tried below and it looked like it worked OK in the library name list.
--- Code: ---libSQLite3_$if(%SQLite3Ver%){$(SQLite3Ver)}{$(#sqlite3.ver)}
--- End code ---
Tim S.
Navigation
[0] Message Index
[#] Next page
Go to full version