[CMake] Variable denoting the object suffix

Brad King brad.king at kitware.com
Mon Jun 12 15:48:44 EDT 2006


wedekind wrote:
> Is there a variable in CMake to denote the platform-specific object-file
> suffix, e.g. ".o" on unix or ".obj" on windows?

These variables contain the extension that will be used in the generated 
project:

CMAKE_C_OUTPUT_EXTENSION
CMAKE_CXX_OUTPUT_EXTENSION

-Brad


More information about the CMake mailing list