Re: [CMake] How to add modifiers to functions

2011-12-17 Thread Eric Noulard
2011/12/17 Renato Utsch renatout...@gmail.com: Doing this checking of in-source and out-of-source is easy! if( ${CMAKE_BINARY_DIR} STREQUAL ${CMAKE_SOURCE_DIR} )    message( FATAL_ERROR          Do not make an in-source build with this project.    ) endif( ${CMAKE_BINARY_DIR} STREQUAL

[CMake] How to add modifiers to functions

2011-12-16 Thread Renato Utsch
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

Re: [CMake] How to add modifiers to functions

2011-12-16 Thread Eric Noulard
2011/12/17 Renato Utsch renatout...@gmail.com: I am trying to make a function that will check if the build is in-source or out-of-source. This is not really possible to do [yet] see http://public.kitware.com/Bug/view.php?id=6672 But I wanted to add a REQUIRED 'modifier' to the function, that