[Cmake] ADD_DEFINITIONS can be target dependent?
Andy Cedilnik
andy.cedilnik at kitware.com
Tue Jul 20 11:49:45 EDT 2004
Hi Ilias,
Try SET_SOURCE_FILE_PROPERTIES to set COMPILE_FLAGS.
IF / ENDIF does not provide enough scoping. You actually need targets in
separate directories.
Andy
On Tue, 2004-07-20 at 11:29, ibiris at genius.org.br wrote:
> quick question about ADD_DEFINITIONS: can it be target dependent (a bunch
> of definitions required for the compilation of a particular
> executable/library target) but not for others that may exist in the same
> CMakeLists.txt?
>
> Am I right to say that to get separate ADD_DEFINITIONS for separate targes,
> since there seems to be no support for target names in the syntax for
> ADD_DEFINITIONS, would require listing targets and definitions inside IF
> ... ENDIF ?
More information about the Cmake
mailing list