Re: [CMake] set(a b); set(b c); if(a STREQUAL b OR a STREQUAL c) ...

2014-09-04 Thread Ruslan Baratov via CMake
On 04-Sep-14 09:58, Clark Wang wrote: On Thu, Sep 4, 2014 at 1:44 PM, Clark Wang > wrote: On Thu, Sep 4, 2014 at 1:36 PM, Chuck Atkins mailto:chuck.atk...@kitware.com>> wrote: Hi Clark The expression inside the if statement has it's variables

Re: [CMake] building from source - manpages?

2014-09-04 Thread Nils Gladitz
On 09/04/2014 10:52 AM, René J.V. Bertin wrote: I'm trying to whip up an Ubuntu PPA for the latest release. I've gotten to the point where the package builder wants to bundle the manpages, but cannot find them. Is there a build dependency for generating these that I'm missing? Since 3.0 CMak

Re: [CMake] [Cdash] Show results from the bullseye coverage in CDash

2014-09-04 Thread NoRulez
Ok then what could be the problem? It also shows 0% coverage sometimes. With bullshtml on the other hand the output seems to be ok. Best Regards Am 15.07.2014 um 12:11 schrieb David Cole : >>> There is an option (which should be on by default) in the >>> "Miscellaneous" section of the project

Re: [CMake] [Cdash] Show results from the bullseye coverage in CDash

2014-09-04 Thread David Cole via CMake
Sometimes an unfortunate network interruption (even a very brief one, at just the wrong time...) can cause my bullseye dashboards to report "0%" coverage. I use the license manager for Bullseye, so the build machine needs network access to the license manager machine when turning coverage on and of

Re: [CMake] building from source - manpages?

2014-09-04 Thread Scott Kitterman
On Thursday, September 04, 2014 13:06:50 René J.V. Bertin wrote: > On Thursday September 04 2014 11:09:42 Nils Gladitz wrote: > >If you are using the bootstrap script for the build I think you need to > >also pass --sphinx-man . > > > >If you are using cmake to build cmake instead you need -DSPHINX

Re: [CMake] set(a b); set(b c); if(a STREQUAL b OR a STREQUAL c) ...

2014-09-04 Thread Chuck Atkins
> Command `if(a MATCHES ...)` has the same flaw: `if( > MATCHES regex)`: > .. > set(MYSTRING "B") > set(A "MYSTRING") > if("${A}" MATCHES "^MYSTRING$") > # do *not* go here even A is MYSTRING (use *variable* MYSTRING) > endif() > This should work without dereferencing A, i.e.: if(A MATCHES "^M

Re: [CMake] set(a b); set(b c); if(a STREQUAL b OR a STREQUAL c) ...

2014-09-04 Thread Ruslan Baratov via CMake
On 04-Sep-14 16:48, Chuck Atkins wrote: Command `if(a MATCHES ...)` has the same flaw: `if( MATCHES regex)`: .. set(MYSTRING "B") set(A "MYSTRING") if("${A}" MATCHES "^MYSTRING$") # do *not* go here even A is MYSTRING (use *variable* MYSTRING) endif() This sho

Re: [CMake] set(a b); set(b c); if(a STREQUAL b OR a STREQUAL c) ...

2014-09-04 Thread Anders Lindgren
As other has pointed out, this is caused by "if" interpreting its arguments as variables, if there is a variable with that name, and quoting the value don't help. However, by embedded both argument in some extra text, you can make sure that the argument don't form a valid variable name. To apply t

Re: [CMake] set(a b); set(b c); if(a STREQUAL b OR a STREQUAL c) ...

2014-09-04 Thread Ruslan Baratov via CMake
On 04-Sep-14 18:09, Anders Lindgren wrote: make sure that the argument don't form a valid variable name. It's not possible set(a b) set(b c) if(">${a}<" STREQUAL ">b<" OR ">${a}<" STREQUAL ">c<") message("true") endif() How about that: set(a "") # variable `a` is empty

Re: [CMake] set(a b); set(b c); if(a STREQUAL b OR a STREQUAL c) ...

2014-09-04 Thread Hendrik Sattler
On 4. September 2014 16:38:21 MESZ, Ruslan Baratov via CMake wrote: >On 04-Sep-14 18:09, Anders Lindgren wrote: >> make sure that the argument don't form a valid variable name. >It's not possible > >> >> set(a b) >> set(b c) >> if(">${a}<" STREQUAL ">b<" OR ">${a}<" STREQUAL ">c<")

[CMake] If execute_process generates embedded newlines in a variable, they are not properly escaped when used in add_custom_target()

2014-09-04 Thread Cody P Schafer
Example: # cat CMakeLists.txt execute_process(COMMAND echo master WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} OUTPUT_VARIABLE BRANCH ) add_custom_target(do-it COMMAND echo "${BRANCH}" COMMAND echo "${BRANCH}" ) # cmake . -GNinja >/dev/null

[CMake] GNUInstallDirs on Fedora problem

2014-09-04 Thread Richard Shaw
I'm hoping I'm just missing something really obvious but I recently discovered the module GNUInstallDirs which is great. But I just tried converting over to it on one of my projects and although my system is definitely x86_64 the libraries are getting installed to lib not lib64. I looked through t

Re: [CMake] GNUInstallDirs on Fedora problem

2014-09-04 Thread Nils Gladitz
On 04.09.2014 21:50, Richard Shaw wrote: I'm hoping I'm just missing something really obvious but I recently discovered the module GNUInstallDirs which is great. But I just tried converting over to it on one of my projects and although my system is definitely x86_64 the libraries are getting in

[CMake] execute_process: OUTPUT_FILE vs. ERROR_FILE

2014-09-04 Thread Nico Schlömer
Hi all, referring to the documentation of execute_process() [1], is there a defined behavior about what happens if OUTPUT_FILE and ERROR_FILE point to the same file? Cheers, Nico [1] http://www.cmake.org/cmake/help/v2.8.12/cmake.html#command:execute_process -- Powered by www.kitware.com Plea

Re: [CMake] Ctest building with Multiple Processors

2014-09-04 Thread Iosif Neitzke
Does ctest -j , or ctest --parallel behave differently? http://www.cmake.org/cmake/help/v3.0/manual/ctest.1.html On Wed, Sep 3, 2014 at 2:31 PM, Michael Jackson wrote: > I am exploring CTest/CDash with out project and I was trying to figure out > how to have CTest use all my cores for builds.

[CMake] Game developers using CMake? Is CMake viable for this industry? Experiences?

2014-09-04 Thread fungos
Hello everyone, I really hope to get some response to this email :) I'm evaluating a build system to manage some big projects in a game studio from a very known game company. We develop and have projects for PC, PS3, PS4, Xbox 360, Xbox One, Nintendo WiiU, Nintendo 3DS and Nintendo Wii. Recentl