Re: [CMake] CMAKE_COMPILER variable

2014-06-06 Thread Adam
I think the "CMAKE_COMPILER" variable you're referring to is just a custom variable passed to your external project, which it uses to build the standard variables "CMAKE_C_COMPILER" & "CMAKE_CXX_COMPILER". This is why your not finding anything. Have a look at these pages http://www.cmake.org/Wiki

[CMake] CMAKE_COMPILER variable

2014-06-06 Thread Michael Enright
I've got an External_Project_Add in my superbuild that adds a CMake-built library to the build. It attempts to use the CMAKE_COMPILER variable in order to define CMAKE_C_COMPILER for this library's build. This external project's build is flakey. I intend to diagnose this myself so I don't plan to

Re: [CMake] generator expressions

2014-06-06 Thread Andrew Fuller
On Fri, Jun 6, 2014 at 8:43 AM, Brad King wrote: > On 06/06/2014 11:37 AM, Andrew Fuller wrote: > > Should I be quoting all my generator expressions? > > Is that the proper syntax? > > The CMake language does not actually know anything about generator > expressions. They are just strings like an

Re: [CMake] generator expressions

2014-06-06 Thread Brad King
On 06/06/2014 11:37 AM, Andrew Fuller wrote: > Should I be quoting all my generator expressions? > Is that the proper syntax? The CMake language does not actually know anything about generator expressions. They are just strings like any other command arguments as far as it knows. See the command

Re: [CMake] generator expressions

2014-06-06 Thread Andrew Fuller
On Fri, Jun 6, 2014 at 8:28 AM, Brad King wrote: > On 06/06/2014 11:07 AM, Andrew Fuller wrote: > > On Fri, Jun 6, 2014 at 6:08 AM, Brad King > wrote: > > > > I cannot reproduce these. Can you provide a complete CMakeLists.txt > > example please? > > > > At

Re: [CMake] generator expressions

2014-06-06 Thread Brad King
On 06/06/2014 11:07 AM, Andrew Fuller wrote: > On Fri, Jun 6, 2014 at 6:08 AM, Brad King > wrote: > > I cannot reproduce these. Can you provide a complete CMakeLists.txt > example please? > > Attached Thanks. I meant to quote the whole outermost $<> expr

Re: [CMake] generator expressions

2014-06-06 Thread Brad King
On 06/05/2014 04:44 PM, Andrew Fuller wrote: > target_link_libraries( my_target PRIVATE > $<$:win.1;win.2> > $<$:lin.1;lin.2> ) > gives a link line of -lwin.2 -llin.1 -llin.2 [snip] > $<$:$> [snip] > It appears in this instance as though the list is being split before > the

Re: [CMake] Issue in CTest when both --label-regex and --label-exclude is used

2014-06-06 Thread Nils Gladitz
On 06/05/2014 12:03 PM, William Deurwaarder wrote: Hi, When both --label-regex and --label-exclude is used to filter tests in CTest the result is always 'No tests were found!!!'. In my opinion this is caused by a small error in ./Source/CTest/cmCTestTestHandler.cxx line 1530 (CMake 2.8.12) or li