forked from Kitware/CMake
-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'cmake-daemon' into dev/merlynop/jmc_only_msvc
- Loading branch information
Showing
2,643 changed files
with
81,992 additions
and
32,855 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,7 @@ configure eol=lf | |
|
||
*.pfx -text | ||
*.png -text | ||
*.png.in -text | ||
|
||
*.c our-c-style | ||
*.cc our-c-style | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
CMake - Cross Platform Makefile Generator | ||
Copyright 2000-2018 Kitware, Inc. and Contributors | ||
Copyright 2000-2019 Kitware, Inc. and Contributors | ||
All rights reserved. | ||
|
||
Redistribution and use in source and binary forms, with or without | ||
|
@@ -39,6 +39,7 @@ The following individuals and institutions are among the Contributors: | |
* Alexander Neundorf <[email protected]> | ||
* Alexander Smorkalov <[email protected]> | ||
* Alexey Sokolov <[email protected]> | ||
* Alex Merry <[email protected]> | ||
* Alex Turbov <[email protected]> | ||
* Andreas Pakulat <[email protected]> | ||
* Andreas Schneider <[email protected]> | ||
|
@@ -62,13 +63,17 @@ The following individuals and institutions are among the Contributors: | |
* Ilya Lavrenov <[email protected]> | ||
* Insight Software Consortium <insightsoftwareconsortium.org> | ||
* Jan Woetzel | ||
* Julien Schueller | ||
* Kelly Thompson <[email protected]> | ||
* Laurent Montel <[email protected]> | ||
* Konstantin Podsvirov <[email protected]> | ||
* Mario Bensi <[email protected]> | ||
* Martin Gräßlin <[email protected]> | ||
* Mathieu Malaterre <[email protected]> | ||
* Matthaeus G. Chajdas | ||
* Matthias Kretz <[email protected]> | ||
* Matthias Maennich <[email protected]> | ||
* Michael Hirsch, Ph.D. <www.scivision.co> | ||
* Michael Stürmer | ||
* Miguel A. Figueroa-Villanueva | ||
* Mike Jackson | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,48 @@ | ||
add_compile_options | ||
------------------- | ||
|
||
Adds options to the compilation of source files. | ||
Add options to the compilation of source files. | ||
|
||
:: | ||
.. code-block:: cmake | ||
add_compile_options(<option> ...) | ||
Adds options to the compiler command line for targets in the current | ||
directory and below that are added after this command is invoked. | ||
See documentation of the :prop_dir:`directory <COMPILE_OPTIONS>` and | ||
:prop_tgt:`target <COMPILE_OPTIONS>` ``COMPILE_OPTIONS`` properties. | ||
Adds options to the :prop_dir:`COMPILE_OPTIONS` directory property. | ||
These options are used when compiling targets from the current | ||
directory and below. | ||
|
||
This command can be used to add any options, but alternative commands | ||
exist to add preprocessor definitions (:command:`target_compile_definitions` | ||
and :command:`add_compile_definitions`) or include directories | ||
(:command:`target_include_directories` and :command:`include_directories`). | ||
Arguments | ||
^^^^^^^^^ | ||
|
||
Arguments to ``add_compile_options`` may use "generator expressions" with | ||
the syntax ``$<...>``. See the :manual:`cmake-generator-expressions(7)` | ||
manual for available expressions. See the :manual:`cmake-buildsystem(7)` | ||
manual for more on defining buildsystem properties. | ||
|
||
.. include:: OPTIONS_SHELL.txt | ||
|
||
Example | ||
^^^^^^^ | ||
|
||
Since different compilers support different options, a typical use of | ||
this command is in a compiler-specific conditional clause: | ||
|
||
.. code-block:: cmake | ||
if (MSVC) | ||
# warning level 4 and all warnings as errors | ||
add_compile_options(/W4 /WX) | ||
else() | ||
# lots of warnings and all warnings as errors | ||
add_compile_options(-Wall -Wextra -pedantic -Werror) | ||
endif() | ||
See Also | ||
^^^^^^^^ | ||
|
||
This command can be used to add any options. However, for | ||
adding preprocessor definitions and include directories it is recommended | ||
to use the more specific commands :command:`add_compile_definitions` | ||
and :command:`include_directories`. | ||
|
||
The command :command:`target_compile_options` adds target-specific options. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.