[cmake-developers] Trying to access variable...
Robert Goulet
Robert.Goulet at autodesk.com
Fri May 1 12:02:27 EDT 2015
Hi all,
I'm trying to read a new global variable I've created into the CMake source... so I tried the following:
target->GetMakefile()->GetFeature("CMAKE_INCLUDE_INSTALL_TO_DEFAULT_BUILD", i->c_str());
...but it always return nullptr. I verified that my CMakeLists.txt contains set(CMAKE_INCLUDE_INSTALL_TO_DEFAULT_BUILD 1), and I also tried setting it on the command line and it always return nullptr. Is there anything special I should be doing to get the value of that global variable?
Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20150501/964bfd4d/attachment.html>
More information about the cmake-developers
mailing list