[Cmake] Set Libs and Compiler flags acc. to build options
Ken Martin
ken.martin at kitware.com
Tue Nov 12 16:10:11 EST 2002
Check out the following FAQ entry. I think all the deprecated commands
will tell you what to use instead. You just need to tell CMake to be
more aggressive.
http://www.cmake.org/cgi-bin/cmakefaq.cgi?req=all#2.1
Thanks
Ken
-----Original Message-----
From: cmake-admin at public.kitware.com
[mailto:cmake-admin at public.kitware.com] On Behalf Of Nils H. Busch
Sent: Tuesday, November 12, 2002 12:05 PM
To: cmake at public.kitware.com
Subject: [Cmake] Set Libs and Compiler flags acc. to build options
Hi,
how can I set compiler flags and/or select libraries depending on
certain build options?
I would like to set certain compiler options and link against certain
libs depending on whether I do a debug or optimised build. I found some
reference to debug /optimize strings for LINK_LIBRARIES and
SET_SOURCE_FILE_PROPERTIES, but I am not sure of the exact syntax given
the CMAKE pdf doc.
Are there more detailed overviews of all CMAKE commands ?
Plus, I have read that SOURCE_FILES is kind of deprecated, but could not
find out what should be used instead.
Many thanks,
--
Nils H. Busch
Max-Planck-Institute of Cognitive Neuroscience
phone: ++49 (341) 9940-035 fax: ++49 (341) 9940-204
e-mail: nilsb at cns.mpg.de
_______________________________________________
Cmake mailing list
Cmake at public.kitware.com
http://public.kitware.com/mailman/listinfo/cmake
More information about the CMake
mailing list