You are not logged in.
$ cat ~/.config/environment.d/cmake.conf
CMAKE_BUILD_PARALLEL_LEVEL=
$ sudo reboot
$ env | grep CMAKE
# nothingwhile with a value, it works:
$ cat ~/.config/environment.d/cmake.conf
CMAKE_BUILD_PARALLEL_LEVEL=8
$ sudo reboot
$ env | grep CMAKE
CMAKE_BUILD_PARALLEL_LEVEL=8Last edited by jronald (2025-02-23 16:44:40)
Offline
Did you try actually setting an empty string?
CMAKE_BUILD_PARALLEL_LEVEL="""CMAKE_BUILD_PARALLEL_LEVEL=" would also unset that variable in most shells (bash etc)
Offline
Did you try actually setting an empty string?
CMAKE_BUILD_PARALLEL_LEVEL=""
not work
using bash
Offline
"CMAKE_BUILD_PARALLEL_LEVEL=" would also unset that variable in most shells (bash etc)
The only shell I know removing var with "VAR=" is windows cmd (set VAR=).
In zsh and bash I do "unset VAR", VAR= just set it to empty string (but does not remove it).
Offline
True indeed. I've too much custom stuff around ![]()
The syntax only accepts "foo=bar".
If an empty "bar" is treated as "foo=" and that is ignored, you'll have to export CMAKE_BUILD_PARALLEL_LEVEL= from etc/profile.
Offline
True indeed. I've too much custom stuff around
The syntax only accepts "foo=bar".
If an empty "bar" is treated as "foo=" and that is ignored, you'll have to export CMAKE_BUILD_PARALLEL_LEVEL= from etc/profile.
It works, thanks.
/etc/profile.d/cmake.sh
export CMAKE_BUILD_PARALLEL_LEVEL=Last edited by jronald (2025-02-23 16:44:20)
Offline