I am trying to make a function that will check if the build is
in-source or out-of-source. But I wanted to add a "REQUIRED"
'modifier' to the function, that if it finds that the build in
in-source, and if we specify "REQUIRED" (as with, like, find_package()
CMake command) it would show an error message to the console. It would
be like above to call it:

check_build_in_source( VARIABLE REQUIRED )

How can I make this?


Renato
--

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

Reply via email to