Hi, 2011/8/18 Otavio Salvador <ota...@ossystems.com.br>: > Take a loook at > /usr/share/cmake-2.8/Modules/CMakeDependentOption.cmake
Thanks Otavio I'll have a look at it. I also found something like OPTION(FORCE_DEPENDENCIES "Enforce optional dependencies" OFF) macro(find_optional_package _package _with_package) if(${_with_package}) if(FORCE_DEPENDENCIES) find_package(${_package} REQUIRED) else(FORCE_DEPENDENCIES) find_package(${_package}) endif(FORCE_DEPENDENCIES) endif(${_with_package}) endmacro(find_optional_package) We'd use this like OPTION(WITH_ALSA "Enable audio using alsa (optional)" ON) OPTION(WITH_WITH_PULSEAUDIO "Enable audio using pulseAudio (optional)" ON) OPTION(WITH_CUPS "Enable printing using cups (optional)" ON) find_optional_package(ALSA WITH_ALSA) find_optional_package(PulseAudio WITH_PULSEAUDIO) find_optional_package(Cups WITH_CUPS) With this defaults doing nothing will result in the old behaviour, and I can do "-DFORCE_DEPENDENCIES=ON -DWITH_CUPS=ON...." I like that and it looks good. What do you think? Nils ------------------------------------------------------------------------------ Get a FREE DOWNLOAD! and learn more about uberSVN rich system, user administration capabilities and model configuration. Take the hassle out of deploying and managing Subversion and the tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2 _______________________________________________ Freerdp-devel mailing list Freerdp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freerdp-devel