Re: [CMake] CXX flags applied to C source

2011-07-25 Thread Michael Wild
Glad to hear. I don't think that add_definitions() understands -U, so it won't translate it for you, but pass it verbatim to the compiler. This means, that -DFOO will become /DFOO for MSVC, you'll have to do the same transformation yourself for -U. Nevertheless, personally I would choose add_defin

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

2011-07-25 Thread Brad King
On 07/25/2011 02:17 PM, Daniel Pfeifer wrote: > Does it also handle circular dependencies? Since we were doing the module breakdown ourselves we could define modules to avoid circular dependencies. We separated implementation dependencies from test dependencies so that library and test modules co

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

2011-07-25 Thread Brad King
On 07/25/2011 03:11 PM, Dave Abrahams wrote: >> Yes, CMake does support response file generation in a few cases. >> It uses them to pass long object file lists to linkers. Since >> CMake 2.8.5 it also uses them for include directory lists with >> GNU tools on Windows. > > That makes it sound like

[CMake] Xcode and Cmake ReRun

2011-07-25 Thread Johan Björk
Hi guys, I noticed that each XCode target has an associated CMake ReRun script phase. Is there a specific reason for this (in difference to having one target that all others depend on that does the ReRun check?) It causes a fair few issues, it fails when you are parallelcompiling targets (It'll s

Re: [CMake] CXX flags applied to C source

2011-07-25 Thread Kelly Burkhart
Thanks, that seems to work. I'm getting around to testing the windows version of this, we have a command line arg: "-UUNICODE" which explicitly removes a manifest constant. I assume that should be in a set(...) rather than an add_definitions(...) correct? The defines for __x86__ and __linux__ ar

Re: [CMake] FindQt4 errors out when locating QtUITools under CMake 2.8.5

2011-07-25 Thread Charlie Sharpsteen
Clinton Stimpson wrote: > > Thanks for finding. Its been fixed in git. > > 702538e Qt4: Fix reference of undefined variable when detecting frameworks > on > Mac OS X > I can confirm that that patch fixes the problem. Thanks a bunch! -Charlie -- View this message in context: http://cmake.

Re: [CMake] FindQt4 errors out when locating QtUITools under CMake 2.8.5

2011-07-25 Thread Clinton Stimpson
On Monday, July 25, 2011 10:55:58 am Charlie Sharpsteen wrote: > I ran into an issue after upgrading from CMake 2.8.4 to 2.8.5---the > following no longer works: > > FIND_PACKAGE(Qt4 COMPONENTS QtUiTools REQUIRED) > > I traced the problem down to a hunk in commit > e7f05d9759ec5bc393760daee91

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

2011-07-25 Thread Daniel Pfeifer
2011/7/25 Brad King : > On 07/25/2011 12:00 PM, Daniel Pfeifer wrote: >> what is your opinion on the $<> syntax I originally proposed? >> This would not require creating virtual targets for header only libraries. > > The proposed solution is to use delayed evaluation to work around > lack of depend

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

2011-07-25 Thread Daniel Pfeifer
2011/7/25 Jean-Christophe Fillion-Robin : > Relaying on small executable named DGraph built at configure time, we manage > to obtain the topological order of CTK plugins, apps and libraries. The tool > also check for cycle and output a human readable message if there are any > cycle. That sounds l

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

2011-07-25 Thread Jean-Christophe Fillion-Robin
We used also a similar approach in CTK. See http://www.commontk.org/index.php/Documentation/BuildSystem_Descriptionand also [1] and [2] Relaying on small executable named DGraph built at configure time, we manage to obtain the topological order of CTK plugins, apps and libraries. The tool also ch

Re: [CMake] Invalid library output directory when VC++ solution is generated

2011-07-25 Thread Alan W. Irwin
On 2011-07-25 07:59-0700 Alan W. Irwin wrote: One possibility is you are setting CMAKE_LIBRARY_OUTPUT_DIRECTORY after your dll's are built. That was sloppy language. What I meant was after your dll targets are configured by CMake. Alan __ Alan W. Irwin Astronomical r

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

2011-07-25 Thread Brad King
On 07/25/2011 12:00 PM, Daniel Pfeifer wrote: > what is your opinion on the $<> syntax I originally proposed? > This would not require creating virtual targets for header only libraries. The implementation is just doing delayed variable evaluation and is not a true generator expression in the same

[CMake] FindQt4 errors out when locating QtUITools under CMake 2.8.5

2011-07-25 Thread Charlie Sharpsteen
I ran into an issue after upgrading from CMake 2.8.4 to 2.8.5---the following no longer works: FIND_PACKAGE(Qt4 COMPONENTS QtUiTools REQUIRED) I traced the problem down to a hunk in commit e7f05d9759ec5bc393760daee91bb7223f6c56d0: diff --git a/Modules/FindQt4.cmake b/Modules/FindQt4.cmak

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

2011-07-25 Thread Daniel Pfeifer
2011/7/25 Brad King > > On 07/13/2011 12:10 PM, Alexander Neundorf wrote: > > When I talked last time with Brad such a feature was still on his TODO, and > > is > > there since at least 2007 already, but still more or less at the bottom of > > the > > list. > > It's more of a "wish I had time to

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

2011-07-25 Thread Brad King
On 07/13/2011 12:10 PM, Alexander Neundorf wrote: > When I talked last time with Brad such a feature was still on his TODO, and > is > there since at least 2007 already, but still more or less at the bottom of > the > list. It's more of a "wish I had time to do this" ;) > add_library(foo ${fo

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

2011-07-25 Thread Brad King
On 07/25/2011 07:56 AM, Dave Abrahams wrote: > > on Mon Jul 25 2011, Daniel Pfeifer wrote: > >> Hey, >> >> is there an update on this topic? > > Well, I asked > > "Does cmake use response files when generating command-lines for windows > compilers that support them?" > > to which there wa

Re: [CMake] Invalid library output directory when VC++ solution is generated

2011-07-25 Thread Alan W. Irwin
On 2011-07-25 12:19+0100 Laura Autón García wrote: Hello all, In the project I am collaborating on, CMake is used in Windows in order to generate a Visual C++ solution to be compiled afterwards. In this process, everything seems to work fine as the external directories and libraries are well inc

Re: [CMake] list subdirectories from a given folder

2011-07-25 Thread David Cole
file(GLOB sub-dirs-of-dir-name ${dir-name}/*) should return only files within "${dir-name}" regardless of the current working directory. HTH, David On Mon, Jul 25, 2011 at 7:50 AM, Julien Dardenne wrote: > > Hi, > > is it possible to list the subdirectories from a given folder? > I use this f

Re: [CMake] ADD_CUSTOM_COMMAND and Dependencies

2011-07-25 Thread Michael Wild
On 07/25/2011 03:24 PM, Micha Renner wrote: > There is following sequence: > > ADD_EXECUTEABLE(generator gen.c) > > ADD_CUSTOM_COMMAND(OUTPUT tlib.h > COMMAND generator > tlib.h) > > ADD_LIBRARY(tlib tlib.c tlib.h) > > The question: Is it sure that ADD_EXECUTEABLE is invoked before the >

[CMake] ADD_CUSTOM_COMMAND and Dependencies

2011-07-25 Thread Micha Renner
There is following sequence: ADD_EXECUTEABLE(generator gen.c) ADD_CUSTOM_COMMAND(OUTPUT tlib.h COMMAND generator > tlib.h) ADD_LIBRARY(tlib tlib.c tlib.h) The question: Is it sure that ADD_EXECUTEABLE is invoked before the library is build or is here an ADD_DEPENDENCIES(tlib generator)

Re: [CMake] CXX flags applied to C source

2011-07-25 Thread Michael Wild
On 07/25/2011 03:20 PM, Kelly Burkhart wrote: > Hi, I have a bunch of compiler flags specified with add_definitions as so: > > if(LINUX) > tb_compiler_version(TB_GCC_VERSION) > add_definitions(${CMAKE_CXX_FLAGS} "-g") > add_definitions(${CMAKE_CXX_FLAGS} "-DBOOST_SIGNALS_NAMESPACE=tb_signals

[CMake] CXX flags applied to C source

2011-07-25 Thread Kelly Burkhart
Hi, I have a bunch of compiler flags specified with add_definitions as so: if(LINUX) tb_compiler_version(TB_GCC_VERSION) add_definitions(${CMAKE_CXX_FLAGS} "-g") add_definitions(${CMAKE_CXX_FLAGS} "-DBOOST_SIGNALS_NAMESPACE=tb_signals") add_definitions(${CMAKE_CXX_FLAGS} "-D__x86__") add

[CMake] list subdirectories from a given folder

2011-07-25 Thread Julien Dardenne
Hi, is it possible to list the subdirectories from a given folder? I use this function but it returns me the file in the current path. macro(list_subdirectories retval curdir return_relative) file(GLOB sub-dir RELATIVE ${curdir} *) set(list_of_dirs "") foreach(dir ${sub-dir}) if(I

[CMake] Invalid library output directory when VC++ solution is generated

2011-07-25 Thread Laura Autón García
Hello all, In the project I am collaborating on, CMake is used in Windows in order to generate a Visual C++ solution to be compiled afterwards. In this process, everything seems to work fine as the external directories and libraries are well included and everything compiles and so. However, we are

[CMake] CTest/CDash reports lots of false errors for Autotools projects

2011-07-25 Thread Marcel Loose
Hi all, I have a dashboard running for a project that consists of several external packages that are built using the GNU Autotools. I get a lot of false errors in my dashboard. Here are some examples: configure: WARNING: cannot find 'swig' program. You should look at http://www.sw

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

2011-07-25 Thread Daniel Pfeifer
Hey, is there an update on this topic? cheers, Daniel ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.c