Re: [CMake] cmake 3.5 vs 3.6 + qt

2016-07-18 Thread Tom Kulaga
I'll try and get together a minimal example to highlight the difference. On Tue, 19 Jul 2016 at 03:16 Brad King wrote: > On 07/15/2016 04:50 AM, David Callu wrote: > > 2016-07-15 1:54 GMT+02:00 Tom Kulaga: > >> I'm using 3.5.2 for a qt based project and I've updated to 3.6 and the > RCC featu

Re: [CMake] cmake 3.5 vs 3.6 + qt

2016-07-18 Thread Brad King
On 07/15/2016 04:50 AM, David Callu wrote: > 2016-07-15 1:54 GMT+02:00 Tom Kulaga: >> I'm using 3.5.2 for a qt based project and I've updated to 3.6 and the RCC >> feature >> seems to fail. Here's a summary >> When I swtiched to 3.6, the compiler can no longer link to the generated rcc >> files.

Re: [CMake] set file property from function

2016-07-18 Thread Robert Maynard
Hi Tiago, It is working for me. Here is a small gist that I used to test this: https://gist.github.com/robertmaynard/e788f040564fe4455a37d784476f7081 On Mon, Jul 18, 2016 at 3:21 AM, Tiago Macarios wrote: > Hi, > > Is there a way to set a property of a file/source from a function? > > Below seem

[CMake] cmake and openmp

2016-07-18 Thread Luis Kornblueh
Hi everybody, I do have a problem with OpenMP and cmake. We have a code in Fortran, which uses different modules dependent if our code gets compiled with or without OpenMP. The flags used by the respective compiler to switch on OpenMP are detected properly by the cmake find...(). But the depend

[CMake] set file property from function

2016-07-18 Thread Tiago Macarios
Hi, Is there a way to set a property of a file/source from a function? Below seems to work file outside of a function, but seems not to work inside one. set_property( SOURCE ${AFILE} APPEND PROPERTY COMPILE_FLAGS "/wd4068" ) Do I need to CACHE it? or is it a scope problem? Thanks, Mac