This is the pattern I typically use for building a MinGW program with CMake and installing it in the correct directory:
mkdir build cd build MSYS2_ARG_CONV_EXCL=- cmake .. -G"MSYS Makefiles" -DCMAKE_INSTALL_PREFIX=$MINGW_PREFIX make install DESTDIR=/ It's a little bit tricky because of how MSYS2's automatic path conversions work, but if you just follow that formula it will probably be fine. --David Grayson On Mon, Jun 22, 2020 at 8:16 AM Filippo Rusconi via Msys2-users < msys2-users@lists.sourceforge.net> wrote: > Greetings, Fellow Developers, > > I am happily using MSYS2/MinGW64 since a number of years without delving > too > much into the file system hierarchy. > > I am now developing and packaging a set of libs/exec programs that are > built > using CMake. I would like to be able to reproduce what I am used to with > GNU/Linux and thus my question: > > I see that libraries, like Qt5, for example, are installed in /mingw64/bin > and > not /mingw64/usr/lib. What is the rationale for this ? > > If I wanted to adhere to the MSYS2/MinGW64 scheme nonetheless, what > CMAKE_INSTALL_PREFIX value should I set ? > > Thank you for your enlightening remarks, > > Sincerely, > Filippo Rusconi > > -- > > ⢀⣴⠾⠻⢶⣦⠀ Filippo Rusconi, PhD > ⣾⠁⢠⠒⠀⣿⡁ Research scientist at CNRS > ⢿⡄⠘⠷⠚⠋⠀ Debian Developer > ⠈⠳⣄⠀⠀⠀⠀ http://msxpertsuite.org > http://www.debian.org > > > _______________________________________________ > Msys2-users mailing list > Msys2-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/msys2-users >
_______________________________________________ Msys2-users mailing list Msys2-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/msys2-users