| Server IP : 176.32.38.42 / Your IP : 216.73.216.223 Web Server : LiteSpeed System : Linux ha006.mymail.zone 4.18.0-553.51.1.lve.1.el8.x86_64 #1 SMP Wed May 14 14:34:57 UTC 2025 x86_64 User : s1225329 ( 1835) PHP Version : 7.4.33 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /usr/share/cmake/Help/command/ |
Upload File : |
get_target_property ------------------- Get a property from a target. .. code-block:: cmake get_target_property(<VAR> target property) Get a property from a target. The value of the property is stored in the variable ``<VAR>``. If the target property is not found, the behavior depends on whether it has been defined to be an ``INHERITED`` property or not (see :command:`define_property`). Non-inherited properties will set ``<VAR>`` to ``<VAR>-NOTFOUND``, whereas inherited properties will search the relevant parent scope as described for the :command:`define_property` command and if still unable to find the property, ``<VAR>`` will be set to an empty string. Use :command:`set_target_properties` to set target property values. Properties are usually used to control how a target is built, but some query the target instead. This command can get properties for any target so far created. The targets do not need to be in the current ``CMakeLists.txt`` file. See Also ^^^^^^^^ * :command:`define_property` * the more general :command:`get_property` command * :command:`set_target_properties` * :ref:`Target Properties` for the list of properties known to CMake