for Nix, lib is the wanted directory
At the moment nixpgks has a patch for this
https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/libraries/kde-frameworks/extra-cmake-modules/nix-lib-path.patch