[CMake] Compile project as C++ if MSVC

Bill Hoffman bill.hoffman at kitware.com
Fri Dec 23 10:07:54 EST 2011


Back to the original question, just to be clear.

The right way to do this is with the set_source_files_properties command:

set_source_files_properties(<SRC> PROPERTIES LANGUAGE CXX)


-Bill


More information about the CMake mailing list