Thorsten Wagner wrote: > Hello, > how can i enforce that a variable will be defined?
Try this: if (NOT DEFINED MY_SPECIAL_VAR) message(FATAL_ERROR "You must set MY_SPECIAL_VAR") endif () Eike
signature.asc
Description: This is a digitally signed message part.
-- 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
