Hey guys, We have an ever growing build that uses CMake cache variables to communicate things like include_dirs and library target names between dependent modules. Basically, we do what the <project_name>_SOURCE_DIR type of thing does but without have projects for every target. However, a developer may use a module's variable without realizing its CMake script hasn't run yet which means the cache variables are uninitialized and therefore empty.
If we emit CMake warnings for uninitialized variables, there are a slew of other uninitialized variable warnings, which do not impact the build. So the question is, how do folks generally protect against the accidental use of uninitialized variables in CMake scripts? -Matt ----------------------------------------------------------------------------------- This email message is for the sole use of the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. -----------------------------------------------------------------------------------
-- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake