[Cmake] Determining host compiler/OS from CMake

William A. Hoffman bill.hoffman at kitware.com
Tue Mar 5 08:59:34 EST 2002


The SOURCE_FILES_FLAGS is SOURCE_FILES_COMPILER_FLAGS_LITERAL as far as I 
can tell.
Source files linker flags does not make sense, perhaps a 
TARGET_LINKER_FLAGS, since you do
not use the linker on source files, but only when building a target.

Does it really happen that much that you want different linker flags for 
each target?
Other than the libraries it uses, which is already supported.


-Bill

At 02:07 AM 3/5/2002 +0000, John Biddiscombe wrote:
> > So you could do:
> > SOURCE_FILES_FLAGS("-flag -flag2" file1 file2 CMAKE_COMPILER_IS_GNUCXX)
>
>Whilst you chaps are organizing the extensions, I'd love to see
>
>SOURCE_FILES_LINKER FLAGS_LITERAL("-any /string +allowed \here" file1 file2
>CMAKE_COMPILER_IS_GNUCXX)
>
>SOURCE_FILES_COMPILER FLAGS_LITERAL("-flag -flag2" file1 file2
>CMAKE_COMPILER_IS_GNUCXX)
>
>The specific aim being to allow any linker command line options - or any
>compiler command line options to be added. The keyword LITERAL stating this
>explicitly and leaving it to the user to ensure it is valid for the
>platform/compiler
>
>(Is this compatible with what you had in mind?)
>
>Thanks
>
>JB
>
>
>_______________________________________________
>Cmake mailing list
>Cmake at public.kitware.com
>http://public.kitware.com/mailman/listinfo/cmake





More information about the CMake mailing list