Hi,<br><br>I want to define a preprocessor directive through CMakeLists.txt, however the only documented method of doing this that I see is <b>add_definitions()</b>. Is there a better way of doing this? According to the documentation this isn't 100% portable, which in my opinion defeats the entire purpose of using CMake to begin with (Or at the very least that function itself). I don't think it is right to have to specify -D. I should be able to do:<br>
<br><span style="font-family: courier new,monospace;">add_definitions( BOOST_ALL_NO_LIB )</span><br><br>However, I have to do:<br><br><span style="font-family: courier new,monospace;">add_definitions( -DBOOST_ALL_NO_LIB )</span><br>
<br>Any help would be greatly appreciated.<br>