[CMake] Question about CHECK_C_COMPILER_FLAG

2016-06-17 Thread Sergei Nikulov
Hi All, I have a question about CHECK_C_COMPILER_FLAG behaviour. Documentation will tell that "the compiler does not give an error message when it encounters the flag". Unfortunately, it not only compiles but try to link executable. If linker fails, due missed libraries it also does not produce

Re: [CMake] cmake install target doesn't run ldconfig after installing library

2016-06-17 Thread Matthew Keeler
So I did some experimenting. It would seem there are a few rules to the order installs are executed 1 - installs are processed in the order the containing CMakeLists.txt files are 2 - within a CMakeLists.txt they seem to be ordered based on which comes first in the file. So a not so elegant worka