CMAKE_LIBRARY_ARCHITECTURE doesn't work

I run cmake with -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_LIBRARY_ARCHITECTURE=i386-linux-gnu

but it finds .so libraries in x86_64-linux-gnu though both versions installed:

dpkg -S libgnutls.so
libgnutls28-dev:i386: /usr/lib/i386-linux-gnu/libgnutls.so
libgnutls30:amd64: /usr/lib/x86_64-linux-gnu/libgnutls.so.30
libgnutls28-dev:amd64: /usr/lib/x86_64-linux-gnu/libgnutls.so
libgnutls30:amd64: /usr/lib/x86_64-linux-gnu/libgnutls.so.30.28.1
libgnutls30:i386: /usr/lib/i386-linux-gnu/libgnutls.so.30.28.1
libgnutls30:i386: /usr/lib/i386-linux-gnu/libgnutls.so.30

So what’s going on? Is this variable works at all?

CMakeCache.txt

CMAKE_LIBRARY_ARCHITECTURE is listed in https://cmake.org/cmake/help/latest/manual/cmake-variables.7.html under “Variables that Describe the System”. I don’t think setting it on the command line has an effect.