Brad King wrote: > On Wed, Feb 22, 2012 at 11:32 AM, Rolf Eike Beer <e...@sf-mail.de> 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 ;)
Then I'll use the variables because it is less code ;) 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://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers