On Wed, Feb 22, 2012 at 11:32 AM, Rolf Eike Beer <[email protected]> wrote: >> Use CMAKE_<LANG>_COMPILER_LOADED to determine which >> languages are enabled. > > In the last modification in FindOpenMP I used the ENABLED_LANGUAGES property. > Which of both ways is the preferred one?
I have no preference. Both are documented and should work. If the goal is to loop over all the enabled languages use the property. Otherwise the variable can be tested for a specific language. Of course the property is read-only so projects cannot mess with it like they can by setting the variable ;) -Brad -- 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://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
