How can I add custom commands to the cmake when invoking something like
cmake -G"Visual Studio 9 2008"
I wish to be able to handle the case when the supplied library finder / configurator works wrong and I want to override the corresponding variables like
set BOOST_DIRECTORY = C:\boobs\
to solve problems like no boost libraries wer found.
I wish I could have found the corresponding way myself, but I couldn’t.
Thanks.
You can use the CMake gui programs to interactively set Cache values:
ccmakeor alternatively:
cmake-gui