[CMake] Force appending flags to external projects

2015-06-04 Thread Stefano Bonicatti
Hello, i'm on Windows, i have a CMake script which uses ExternalProject_Add to download and compile some libraries my project needs. The majority of the libraries use CMake themselves. Now what i'm interested in is having these libraries compile with the Visual Studio /MP flag appended to their

[CMake] Library deduplication and imported target dependencies

2016-05-30 Thread Stefano Bonicatti
Hello there. First of all is there any documentation about how CMake handles deduplication of libraries when linking (so to avoid duplicate libraries to be linked unnecessarily)? Now to my issue: I have a library libA which has to link to libB, libC, libD and libE. libA is the only one internal