Re: [CMake] Lib prefix: Windows vs. Unix/MinGW convention

2018-07-10 Thread Robert Maynard
>Why isn't CMake doing that by default? The convention of the target platform should prevail over the convention of the toolchain, shouldn't it?' CMake considers the target platform to be composed of the OS, and the compilation toolchain. Therefore MINGW uses the 'lib' prefix. > 2. Should I use i

[CMake] Lib prefix: Windows vs. Unix/MinGW convention

2018-07-10 Thread Olivier Croquette
Hello, some projects I am working on are built using CMake and MinGW on Windows. It works fine, unfortunately there are come inconsistencies regarding the names of the generated libraries. Some are prefixed with "lib" like on Unix systems, some are not, like usual on Windows. It seems that t