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!
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to support the CMake community. For more
information on each offering, please visit:
CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers