[CMake] QT + CMake + Visual Studio = ui files refresh

2016-06-16 Thread Tiago Macarios
Hi, I am currently using QT + CMake + Visual Studio and everything works great. Problem I am having is that if I change a .ui file Visual Studio does not seem to capture that during the build. If I just "touch" the header file, them everything works fine (moc gets triggered). Is there a way to s

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

2016-06-16 Thread Young Yang
Thanks! This command really solve my problem. But I still get a problem about the command order now. I have some sub directories. For e.g. One of them is called "src" and there is also a CMakeLists.txt in it. And the shared library installation instructions are in it. So I have `ADD_SUBDIRECTORY(

Re: [CMake] oversubscribing OpenMPI in tests

2016-06-16 Thread Zaak Beekman
Excellent, this is far better than any of the approaches I had thought of... cheers! On Thu, Jun 16, 2016 at 4:45 PM Thompson, KT wrote: > Zaak, > > > > I use ‘execute_process (${MPIEXEC} --version)’ and match the output to a > string (Open MPI, ALPS, MPICH). This isn’t the most elegant solutio

Re: [CMake] oversubscribing OpenMPI in tests

2016-06-16 Thread Thompson, KT
Zaak, I use ‘execute_process (${MPIEXEC} --version)’ and match the output to a string (Open MPI, ALPS, MPICH). This isn’t the most elegant solution, but it seems fairly robust. -kt From: CMake [mailto:cmake-boun...@cmake.org] On Behalf Of Zaak Beekman Sent: Thursday, June 16, 2016 9:14 AM To:

Re: [CMake] cmake targeting vs2015 error

2016-06-16 Thread Welson Sun
Update: I tried cmake 3.5.2, and that worked fine. BTW, I am trying to compile llvm+clang 3.5 with VS2015. On Wed, Jun 15, 2016 at 1:36 PM, Kristian wrote: > Could you give us either the CMakeLists.txt or the whole cl command, which > was called? > > Without of some more information, I could n

[CMake] What do these CMake error messages mean?

2016-06-16 Thread Howard Rubin
CMake is giving many error messages like the below since we added OpenCV 3.1.0 to our project (and we need that new version). Can anyone help me understand what do about it and/or what the error messages are telling me? None of the 3 hits for this google search were helpful: opencv cmake "wh

[CMake] oversubscribing OpenMPI in tests

2016-06-16 Thread Zaak Beekman
Does anyone know a good way to determine if `find_package(MPI REQUIRED)` is returning OpenMPI? I need to know, because OpenMPI does not handle oversubscribed (more ranks than cores) tests well without explicitly telling OpenMPI that you are oversubscribing. This can be done by creating a hosts file

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

2016-06-16 Thread Matthew Keeler
CMake won’t and in my opinion shouldn’t implicitly invoke ldconfig for you. There are many scenarios and platforms where this is incorrect behavior and some such as running install to prepare for packaging that CMake wouldn’t reliably be able to detect. If you want to provide the functionality for