/
niceSOFT
/
cmake
Обзор
Документация
Войти
/
niceSOFT
/
cmake
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Help/command/remove_definitions.rst
32 строки
714 B
Peter Kokot
remove_definitions: Update documentation
21 окт 2025, 23:23
Не верифицирован
21 окт 2025, 23:23
6374f70
Код
Авторство
О чём код?
remove_definitions ------------------ Removes compile definitions added by :command:`add_compile_definitions`, or :command:`add_definitions`: .. code-block:: cmake remove_definitions([<definitions>...]) The arguments are: ``<definitions>...`` Zero or more compile definitions. This command can be also used to remove any flags added by :command:`add_definitions`, but it is intended to remove preprocessor definitions passed with ``-D``, or ``/D``. Examples ^^^^^^^^ In the following example targets of the current directory scope will have only ``BAZ`` and ``QUUX`` compile definitions: .. code-block:: cmake add_compile_definitions(FOO BAR BAZ -DQUUX) # ... remove_definitions(-DFOO -DBAR)