Herzenschein++ 🩵⭐ on Nostr: Tech thing that bothers me more than it should: mkdir build cd build cmake .. ...
Tech thing that bothers me more than it should:
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr
make
make install
stahp
do this instead:
cmake -B build/
cmake --build build/
cmake --install build/ --prefix /usr
same with meson:
meson setup build/
meson compile -C build/
meson install -C build --destdir /usr
#cmake #meson
Published at
2024-06-07 17:34:05Event JSON
{
"id": "c4c05ace10f89aa242b66d12a816a7da6d49f6c93ea17864951574a3fb16ab96",
"pubkey": "9dba5a2049cc20aa48b47888d6bc295bab1ce1da145a5f6b7d9640853c4e8760",
"created_at": 1717774445,
"kind": 1,
"tags": [
[
"t",
"cmake"
],
[
"t",
"meson"
],
[
"proxy",
"https://furry.engineer/users/herzenschein/statuses/112576066025795413",
"activitypub"
]
],
"content": "Tech thing that bothers me more than it should:\n\nmkdir build\ncd build\ncmake .. -DCMAKE_INSTALL_PREFIX=/usr\nmake\nmake install\n\n\nstahp\n\ndo this instead:\n\ncmake -B build/\ncmake --build build/\ncmake --install build/ --prefix /usr\n\n\nsame with meson:\n\nmeson setup build/\nmeson compile -C build/\nmeson install -C build --destdir /usr\n\n\n#cmake #meson",
"sig": "88e3bdacd5df5982883dfc4f5ce55005d4c56c5032fbe4885cf55576980339e4266f6da9bdba162f3f8bae6b7c22c9f3399aad65ca9652d5de2fbc2cc5e76eb0"
}