mirror of
https://github.com/reactos/CMake.git
synced 2024-11-24 20:19:53 +00:00
e7ca48f226
Generator expressions are supported in many places and are a distinct concept worthy of their own manual page. The old builtin documentation was previously represented by preprocessor macros to generate it into each place that supports them. Factor out the duplicate content into a dedicated cmake-generator-expressions manual page and reference it from each original location.
18 lines
618 B
ReStructuredText
18 lines
618 B
ReStructuredText
add_compile_options
|
|
-------------------
|
|
|
|
Adds options to the compilation of source files.
|
|
|
|
::
|
|
|
|
add_compile_options(<option> ...)
|
|
|
|
Adds options to the compiler command line for sources in the current
|
|
directory and below. This command can be used to add any options, but
|
|
alternative commands exist to add preprocessor definitions or include
|
|
directories. See documentation of the directory and target
|
|
COMPILE_OPTIONS properties for details. Arguments to
|
|
add_compile_options may use "generator expressions" with the syntax
|
|
"$<...>". See the :manual:`cmake-generator-expressions(7)` manual for
|
|
available expressions.
|