<p><code>PACKAGE_NAME</code> is a metadata used to define the name of the project/package (&quot;Bitcoin Core&quot;). Then, we can use it and avoid to duplicate it along the codebase.</p>
<p>Note that with CMake, it can be found at <code>CMakeLists.txt</code>, see:</p>
<pre><code>#=============================
# Project / Package metadata
#=============================
set(PACKAGE_NAME &quot;Bitcoin Core&quot;)
set(CLIENT_VERSION_MAJOR 28)
set(CLIENT_VERSION_MINOR 99)
set(CLIENT_VERSION_BUILD 0)
set(CLIENT_VERSION_RC 0)
set(CLIENT_VERSION_IS_RELEASE &quot;false&quot;)
set(COPYRIGHT_YEAR &quot;2024&quot;)
</code></pre>

CC BY-SA 4.0
2024-09-20T22:35:25.833Z
2024-09-20T22:35:25.833Z
brunoerg
<p>In bitcoin source, I found a variable named PACKAGE_NAME, how does it works?</p>

<bitcoin-core>
how does PACKAGE_NAME defined and used in bitcoin source code?
jinsong ai
# how does PACKAGE_NAME defined and used in bitcoin source code?

(Asked by: username_0 on 2019-02-13)

In bitcoin source, I found a variable named PACKAGE\_NAME, how does it works?

**Tags:** bitcoin-core


---

## 1 answers

### Answer by username_1 on 2024-09-20. Score: 1

`PACKAGE_NAME` is a metadata used to define the name of the project/package ("Bitcoin Core"). Then, we can use it and avoid to duplicate it along the codebase.

Note that with CMake, it can be found at `CMakeLists.txt`, see:

```
#=============================
# Project / Package metadata
#=============================
set(PACKAGE_NAME "Bitcoin Core")
set(CLIENT_VERSION_MAJOR 28)
set(CLIENT_VERSION_MINOR 99)
set(CLIENT_VERSION_BUILD 0)
set(CLIENT_VERSION_RC 0)
set(CLIENT_VERSION_IS_RELEASE "false")
set(COPYRIGHT_YEAR "2024")

```


---

