[CMake] Setting new file extensions
Brad King
brad.king at kitware.com
Wed Sep 14 13:47:44 EDT 2005
Filipe Sousa wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> I'm trying to add a new file extension through
> CMAKE_CXX_SOURCE_FILE_EXTENSIONS but it doesn't work because the global
> generator reads the variable before I had a chance to set the variable
>
> SET(CMAKE_CXX_SOURCE_FILE_EXTENSIONS
> ${CMAKE_CXX_SOURCE_FILE_EXTENSIONS} moc)
>
> Is there another way to do this?
That variable is meant for communication between the CMake/Modules
directory and the generator and was not to my knowledge intended for
users to change. It would be nice to be able to add extensions for
languages though so please add a feature request:
http://www.cmake.org/Bug
-Brad
More information about the CMake
mailing list