Re: [CMake] Adding a Visual Studio 10 specific flag

2011-07-12 Thread Yuri Timenkov
These flags used by CMake internally to properly handle dependencies (as I can tell from source code). LinkLibraryDependencies is turned on when your target depends on target added wihth include_external_msproject. As for UseLibraryDependencyInputs - you can't set this flag with CMake. On Mon, Jul

Re: [CMake] How to remove "NOMINMAX" from Visual Studio projects in CMake

2011-07-12 Thread Yuri Timenkov
Look through your CMakeLists where it is defined. AFAIK CMake doesn't add it if you don't ask. Then, there are options: if it is added via add_definitions() then you can use remove_definitions to remove this macro for single project. If it is passed via COMPILE_FLAGS - then you have to adjust them

Re: [CMake] Can I determine what a target is in a macro?

2011-07-12 Thread David Cole
The target property TYPE tells you what the type of the library is: http://cmake.org/cmake/help/cmake-2-8-docs.html#prop_tgt:TYPE Use: get_property(type TARGET ${SOME_TARGET} PROPERTY TYPE) message("type='${type}'") to retrieve the value of the TYPE property. http://cmake.org/cmake/hel

[CMake] Can I determine what a target is in a macro?

2011-07-12 Thread Stephen Kelly
Hi, I'd like to be able to write a macro like this: macro(my_macro SOME_TARGET) if (isStaticLibraryTarget(${SOME_TARGET}) message(FATAL "This macro can only be used with shared libraries") endif() endmacro() add_library(libshared SHARED shared.cpp) my_macro(libshared) # Works add_librar

Re: [CMake] $<> expressions in include_directories command

2011-07-12 Thread Jean-Christophe Fillion-Robin
Hi Daniel, This sounds like a great feature :), do you think you could also associate a test with your changes ? Out of curiosity, why "*the right set of include directories is unknown until all components have been processed*" ? If it resumes not to be the case, I believe using a CMakeCache var

Re: [CMake] Wiki: version compatibility matrix

2011-07-12 Thread Alexander Neundorf
Hi, On Saturday 04 December 2010, Johannes Zarl wrote: > Hello, > > The compatibility matrix for different versions of cmake is now complete > and awaits review: > http://www.cmake.org/Wiki/CMake_Version_Compatibility_Matrix > > Apart from factual errors and things I might have missed, I am also

Re: [CMake] cmake on MS Windows with GNU make ignores number of jobs

2011-07-12 Thread Bill Hoffman
On 7/12/2011 11:39 AM, Florian Reinhard wrote: Hi! Problem: * GNU make doesn't make use of "number of jobs" (-j) Setup: * windows 7 x64 * cmake 2.8.4 * GNU make 3.81 (gnuwin32) * custom toolchain (Texas Instruments cl6x) I tried the following generators: * MinGW Makefiles * Unix Makefiles Do

[CMake] $<> expressions in include_directories command

2011-07-12 Thread Daniel Pfeifer
Hi fellows of Ryppl and CMake, we are currently in the process of modularizing the Boost C++ Libraries into small individual components. All these components may depend upon each other, circular dependencies may occur too. We use CMake to configure, build, test, package etc. We are quite successfu

[CMake] cmake on MS Windows with GNU make ignores number of jobs

2011-07-12 Thread Florian Reinhard
Hi! Problem: * GNU make doesn't make use of "number of jobs" (-j) Setup: * windows 7 x64 * cmake 2.8.4 * GNU make 3.81 (gnuwin32) * custom toolchain (Texas Instruments cl6x) I tried the following generators: * MinGW Makefiles * Unix Makefiles Does parallel compiling not work in general or is t

Re: [CMake] Addition to FindGit

2011-07-12 Thread Eric Noulard
2011/7/12 Michael Hertling : > On 07/12/2011 09:35 AM, Eric Noulard wrote: >> 2011/7/12 Thomas Petazzoni : >>> Hello, >>> >>> Le Sun, 05 Jun 2011 11:02:00 +0200, >>> Quintus a écrit : >>> I'm working on a git-versioned project that I'd like to display it's version number for development

Re: [CMake] Avoid "Qt's circular inclusion" warnings

2011-07-12 Thread NoRulez
So, here is what I did, I think I do something wrong: In the main CMakeLists.txt file at the end of the file I have: ## Create a CTestCustom.cmake file FILE(WRITE ${CMAKE_BINARY_DIR}/CTestCustom.cmake "SET(CTEST_CUSTOM_WARNING_EXCEPTION \${CTEST_CUSTOM_WARNING_EXCEPTION} \"circul

Re: [CMake] Addition to FindGit

2011-07-12 Thread Michael Hertling
On 07/12/2011 09:35 AM, Eric Noulard wrote: > 2011/7/12 Thomas Petazzoni : >> Hello, >> >> Le Sun, 05 Jun 2011 11:02:00 +0200, >> Quintus a écrit : >> >>> I'm working on a git-versioned project that I'd like to display it's >>> version number for development versions like this: >>> >>> 1.2.3-dev (

Re: [CMake] Avoid "Qt's circular inclusion" warnings

2011-07-12 Thread NoRulez
Thanks for the hint, but it doesn't work either: Here is the error which I get in CDash: Build Log Line353 Error /usr/include/stdarg.h:4: circular inclusion of /usr/include/stdarg.h Updating '../../../../source/app/client/Languages/Language_ces.ts'... Found 874 sour

Re: [CMake] Avoid "Qt's circular inclusion" warnings

2011-07-12 Thread Rolf Eike Beer
> Hi, > > in my App I use lupdate/lrelease to generate language plugins. > > However due the bug in lupdate which generates "circular inclusion of ..." > warnings, the dash board (CDash) has error's and not warnings. > > I don't know why there are errors and not warnings. > > Is there a way to disa

[CMake] Avoid "Qt's circular inclusion" warnings

2011-07-12 Thread NoRulez
Hi, in my App I use lupdate/lrelease to generate language plugins. However due the bug in lupdate which generates “circular inclusion of …” warnings, the dash board (CDash) has error’s and not warnings. I don’t know why there are errors and not warnings. Is there a way to disable/ignore t

[CMake] How to remove "NOMINMAX" from Visual Studio projects in CMake

2011-07-12 Thread 火灵
Hi everyone, I use CMake in Visual Studio 2008. When I generate MFC projects, in the "Preprocessor Definitions" there is an option "NOMINMAX". Anyone knows how to remove it use CMake? Thank you! Best Regards Shuiling___ Powered by www.kitware.c

Re: [CMake] Multiple install section from the same base folder

2011-07-12 Thread Eric Noulard
2011/7/12 Laszlo Papp : > > > Here is what I would advise (of course by setting some option if you > want two have it also the "original" way): > > install(FILES >   atticamanager.h >   authentication.h >   archive/archive.h >   models/commentitemsmodel.h >   models/gameitemsmodel.h >   models

Re: [CMake] Multiple install section from the same base folder

2011-07-12 Thread Laszlo Papp
Hi Eric, > Honestly I do not see any benefit in this, but may be I did not > understand what you meant? Here is an example then: Original version: install(FILES atticamanager.h authentication.h DESTINATION ${INCLUDE_INSTALL_DIR}/gluon/player/lib COMPONENT Devel ) install(FILES

Re: [CMake] Multiple install section from the same base folder

2011-07-12 Thread Eric Noulard
2011/7/12 Laszlo Papp : > Hi, > >> Not sure whether if it's better than your current solution. >> May be it's a little less painless to write. > > Would it make sense to add an option to these install sections so that > it grabs the files as they are (with subfolders, if any), if you set > that opt

Re: [CMake] Addition to FindGit

2011-07-12 Thread Eric Noulard
2011/7/12 Thomas Petazzoni : > Hello, > > Le Sun, 05 Jun 2011 11:02:00 +0200, > Quintus a écrit : > >> I'm working on a git-versioned project that I'd like to display it's >> version number for development versions like this: >> >> 1.2.3-dev (commit abc1234 on devel, 12/4/10) > > For  similar need

Re: [CMake] Multiple install section from the same base folder

2011-07-12 Thread Laszlo Papp
Hi, > Not sure whether if it's better than your current solution. > May be it's a little less painless to write. Would it make sense to add an option to these install sections so that it grabs the files as they are (with subfolders, if any), if you set that option or something like that ? That wo

Re: [CMake] Multiple install section from the same base folder

2011-07-12 Thread Eric Noulard
2011/7/12 Laszlo Papp : > Hi, > > I have just realized this snippet in my CMakeLists.txt file: > > install(FILES >    atticamanager.h >    authentication.h > >    DESTINATION ${INCLUDE_INSTALL_DIR}/gluon/player/lib >    COMPONENT Devel > ) > > install(FILES >    archive/archive.h > >    DESTINATION

Re: [CMake] Addition to FindGit

2011-07-12 Thread Thomas Petazzoni
Hello, Le Sun, 05 Jun 2011 11:02:00 +0200, Quintus a écrit : > I'm working on a git-versioned project that I'd like to display it's > version number for development versions like this: > > 1.2.3-dev (commit abc1234 on devel, 12/4/10) For similar need I did something like : execute_process(CO