Re: [CMake] Supressing Make, but not Generators

2010-03-03 Thread Smith Jack (Ext. - UGIS - UniCredit Group)
It's worryingly quiet on this subject. -Original Message- From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of Smith Jack (Ext. - UGIS - UniCredit Group) Sent: Tuesday, March 02, 2010 6:31 PM To: cmake@cmake.org Subject: [CMake] Supressing Make, but not

Re: [CMake] Supressing Make, but not Generators

2010-03-03 Thread Hendrik Sattler
Zitat von Smith Jack (Ext. - UGIS - UniCredit Group) jack.smith.ext...@unicreditgroup.de: It's worryingly quiet on this subject. So, just exclude the target that won't build from ALL. -Original Message- From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of

Re: [CMake] Supressing Make, but not Generators

2010-03-03 Thread Smith Jack (Ext. - UGIS - UniCredit Group)
-Original Message- From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of Hendrik Sattler Sent: Wednesday, March 03, 2010 9:21 AM To: cmake@cmake.org Subject: Re: [CMake] Supressing Make, but not Generators Zitat von Smith Jack (Ext. - UGIS - UniCredit

Re: [CMake] Supressing Make, but not Generators

2010-03-03 Thread J Decker
You can test for platform flags.. if( win32 ) add_subdirectory( these_compile ) #... endif( win32 ) or add specific options that can be checked http://www.cmake.org/Wiki/CMake_Useful_Variables On Wed, Mar 3, 2010 at 12:27 AM, Smith Jack (Ext. - UGIS - UniCredit Group)

Re: [CMake] Supressing Make, but not Generators

2010-03-03 Thread Smith Jack (Ext. - UGIS - UniCredit Group)
-Original Message- From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of J Decker Sent: Wednesday, March 03, 2010 9:34 AM To: cmake@cmake.org Subject: Re: [CMake] Supressing Make, but not Generators You can test for platform flags.. if( win32 )

Re: [CMake] Supressing Make, but not Generators

2010-03-03 Thread Michael Wild
On 3. Mar, 2010, at 9:27 , Smith Jack (Ext. - UGIS - UniCredit Group) wrote: -Original Message- From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of Hendrik Sattler Sent: Wednesday, March 03, 2010 9:21 AM To: cmake@cmake.org Subject: Re: [CMake]

Re: [CMake] Supressing Make, but not Generators

2010-03-03 Thread Eric Noulard
2010/3/3 Smith Jack (Ext. - UGIS - UniCredit Group) jack.smith.ext...@unicreditgroup.de: -Original Message- From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of J Decker Sent: Wednesday, March 03, 2010 9:34 AM To: cmake@cmake.org Subject: Re: [CMake]

Re: [CMake] Supressing Make, but not Generators

2010-03-03 Thread Smith Jack (Ext. - UGIS - UniCredit Group)
-Original Message- From: Eric Noulard [mailto:eric.noul...@gmail.com] Sent: Wednesday, March 03, 2010 10:51 AM To: Smith Jack (Ext. - UGIS - UniCredit Group) Cc: cmake@cmake.org Subject: Re: [CMake] Supressing Make, but not Generators 2010/3/3 Smith Jack (Ext. - UGIS - UniCredit

[CMake] xcodeproj internal reference lottery

2010-03-03 Thread hauns
i am using cmake 2.8.0 on mac os x 10.6.2 with xcode 3.2.1 for generating .xcodeproj files for a large cross platform project. internally, .xcodeproj package files neatly distinguish project from user data information (such as debug settings) in separate files: project.pbxproj and

[CMake] Skipping PATH when using find_library

2010-03-03 Thread Mika . Rajala
Hi I have read the documentation on find_library command, and i think what i need is possible, but i just can't figure it out. I'd like to run the find_library command, so that it doesn't use the windows environment variable PATH for folders to look from. Is this possible with cmake? I tried

[CMake] find_path for multiple files

2010-03-03 Thread Guillaume Duhamel
Hi, I'm working on a new FindXXX module and I need to search for paths providing multiple header files, for instance path P1 could provide A.h and B.h while not providing C.h when path P2 provides the three of them. In this case, I want to detect P2 only. Does CMake has some built-in functions

Re: [CMake] xcodeproj internal reference lottery

2010-03-03 Thread David Cole
The CMake generator for Xcode simply uses object pointers as the seed for those hex ids: that's why they change every time you run cmake. It's also what makes it easy to guarantee that those ids are unique without having a data structure to track it. Re-using the same ids would be possible, but

Re: [CMake] xcodeproj internal reference lottery

2010-03-03 Thread Eric Noulard
2010/3/3 David Cole david.c...@kitware.com: The CMake generator for Xcode simply uses object pointers as the seed for those hex ids: that's why they change every time you run cmake. It's also what makes it easy to guarantee that those ids are unique without having a data structure to track it.

Re: [CMake] find_path for multiple files

2010-03-03 Thread Michael Wild
On 3. Mar, 2010, at 11:33 , Guillaume Duhamel wrote: Hi, I'm working on a new FindXXX module and I need to search for paths providing multiple header files, for instance path P1 could provide A.h and B.h while not providing C.h when path P2 provides the three of them. In this case, I want

Re: [CMake] Weird behaviour of mark_as_advanced(), find_program() and the cache

2010-03-03 Thread Brad King
Alexander Neundorf wrote: This sees the variable is already in the cache, but without meta info and adds it using AddCacheDefinition(). After this call, makefile-GetDefinition(FOO) returns an empty string, before this call it still returns foo. It's not the empty string in find_program()'s

Re: [CMake] Qt assistant in OsX application bundle

2010-03-03 Thread Martin Guillon
In fact it was not solved It works great on my dev machine. But as soon as I copy my app on a machine without qt framework I get an error Cannot Load SQLite database driver! So let me first show you my layout Bundl.app --MacOS --Resources --Framework -QtCore... -QGui... -QtXml...

Re: [CMake] Qt assistant in OsX application bundle

2010-03-03 Thread Michael Wild
Hmm, that's strange... Looks like you're doing the things the right way... Have you tried making the Doc/Assistant.app/Contents/Plugins not a symlink, but a copy of Bundle.app/Contents/Plugins instead? Just for debugging... Moving the libqsqlite.dylib library into MacOS can't help because Qt is

Re: [CMake] Qt assistant in OsX application bundle

2010-03-03 Thread Martin Guillon
Yeah it s very frustrating :D Where did you find the info about exactly where qt looks for libsqlite.dylib? I tried to find that info myself but couldn't Tried not using symlink but copies, same problem. I feel stuck! :s -Original Message- From: Michael Wild [mailto:them...@gmail.com]

Re: [CMake] Qt assistant in OsX application bundle

2010-03-03 Thread Clinton Stimpson
This works for me: Foo.app/ -Contents/ --plugins/ ---sqldrivers --Resources/ ---qt.conf --MacOS/ ---Foo ---Assistant.app/ Contents/ -plugins/ symlink to ../../../plugins Resources -qt.conf You can change the location of plugins to your liking if you specify it in qt.conf.

Re: [CMake] Qt assistant in OsX application bundle

2010-03-03 Thread Michael Wild
On 3. Mar, 2010, at 15:50 , Clinton Stimpson wrote: This works for me: Foo.app/ -Contents/ --plugins/ ---sqldrivers --Resources/ ---qt.conf --MacOS/ ---Foo ---Assistant.app/ Contents/ -plugins/ symlink to ../../../plugins Resources -qt.conf You can change

Re: [CMake] Qt assistant in OsX application bundle

2010-03-03 Thread Martin Guillon
Already tried with that qt.conf and I still get the error :s And yes I have to be careful as it is case sensitive MArtin -Original Message- From: Michael Wild [mailto:them...@gmail.com] Sent: Wednesday, March 03, 2010 4:10 PM To: Clinton Stimpson Cc: Martin Guillon; Michael Jackson;

Re: [CMake] Qt assistant in OsX application bundle

2010-03-03 Thread Clinton Stimpson
On Wednesday 03 March 2010 08:07:17 am Martin Guillon wrote: I tried exactly your layout and I still get the error. So a few questions: - can you show me the qt.conf of your Assistant.app Its empty. - where did you get the Assistant.app? I build qt myself so that I can choose to install

Re: [CMake] Qt assistant in OsX application bundle

2010-03-03 Thread Martin Guillon
Ok so we do exactly the same thing (except that I use qt 4.6.2 right now) Thanks for the info -Original Message- From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of Clinton Stimpson Sent: Wednesday, March 03, 2010 4:20 PM To: Martin Guillon Cc: Michael Jackson;

[CMake] combining cmake and qmake

2010-03-03 Thread Hicham Mouline
Hello, I have a library that contain the core of my application. I have been running this application in text-mode so far. I will now extend it to use a GUI, and I've chosen Qt. I have used cmake to generate Makefiles on linux/g++4.x and solutions files on win32/vs2008. Qt comes with qmake

Re: [CMake] combining cmake and qmake

2010-03-03 Thread Tyler Roscoe
On Wed, Mar 03, 2010 at 11:01:14AM -0500, Hicham Mouline wrote: Qt comes with qmake which takes .pro files as input and also generates Makefiles or vs2008 solution files. Is there a generally advised policy re combining systems with both cmake and qmake? Take a look at CMake's FindQt4

Re: [CMake] combining cmake and qmake

2010-03-03 Thread Matt Williams
On 3 March 2010 16:01, Hicham Mouline hic...@mouline.org wrote: Hello, I have a library that contain the core of my application. I have been running this application in text-mode so far. I will now extend it to use a GUI, and I've chosen Qt. I have used cmake to generate Makefiles on

Re: [CMake] xcodeproj internal reference lottery

2010-03-03 Thread David Cole
On Wed, Mar 3, 2010 at 8:15 AM, Eric Noulard eric.noul...@gmail.com wrote: 2010/3/3 David Cole david.c...@kitware.com: The CMake generator for Xcode simply uses object pointers as the seed for those hex ids: that's why they change every time you run cmake. It's also what makes it easy to

Re: [CMake] xcodeproj internal reference lottery

2010-03-03 Thread hauns
david, thanks for your prompt response. you presented an implementation issue as a reason for this behavior - i can understand. however, do you appreciate the issue of user data getting over written each time? in my opinion this represents a serious limitation of cmake on the mac when trying

Re: [CMake] combining cmake and qmake

2010-03-03 Thread Ryan Pavlik
On 03/03/2010 10:06 AM, Matt Williams wrote: On 3 March 2010 16:01, Hicham Moulinehic...@mouline.org wrote: Hello, I have a library that contain the core of my application. I have been running this application in text-mode so far. I will now extend it to use a GUI, and I've chosen Qt.

Re: [CMake] xcodeproj internal reference lottery

2010-03-03 Thread Bill Hoffman
ha...@mac.com wrote: david, thanks for your prompt response. you presented an implementation issue as a reason for this behavior - i can understand. however, do you appreciate the issue of user data getting over written each time? in my opinion this represents a serious limitation of cmake

Re: [CMake] xcodeproj internal reference lottery

2010-03-03 Thread hauns
Those id's are all over the place in projects. But, sounds like the only ones that need to persist are the ones that represent files. I suppose you could load in the existing project if there is one, and populate a map of object id's for the files. You would have to write a parser for the

Re: [CMake] xcodeproj internal reference lottery

2010-03-03 Thread Bill Hoffman
ha...@mac.com wrote: Those id's are all over the place in projects. But, sounds like the only ones that need to persist are the ones that represent files. I suppose you could load in the existing project if there is one, and populate a map of object id's for the files. You would have to

Re: [CMake] Weird behaviour of mark_as_advanced(), find_program() and the cache

2010-03-03 Thread Alexander Neundorf
On Wednesday 03 March 2010, Brad King wrote: Alexander Neundorf wrote: This sees the variable is already in the cache, but without meta info and adds it using AddCacheDefinition(). After this call, makefile-GetDefinition(FOO) returns an empty string, before this call it still returns foo.

Re: [CMake] Supressing Make, but not Generators

2010-03-03 Thread Alexander Neundorf
On Wednesday 03 March 2010, Michael Wild wrote: On 3. Mar, 2010, at 9:27 , Smith Jack (Ext. - UGIS - UniCredit Group) wrote: -Original Message- From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of Hendrik Sattler Sent: Wednesday, March 03, 2010 9:21 AM To:

Re: [CMake] Weird behaviour of mark_as_advanced(), find_program() and the cache

2010-03-03 Thread Brad King
Alexander Neundorf wrote: On Wednesday 03 March 2010, Brad King wrote: http://www.cmake.org/Bug/view.php?id=9008 Should I add this testcase to #9008 ? Yes, please. -Brad ___ Powered by www.kitware.com Visit other Kitware open-source projects at

Re: [CMake] CPack RPM: how to specify the compression type ?

2010-03-03 Thread Alexander Neundorf
On Tuesday 02 March 2010, Eric Noulard wrote: 2010/3/1 Alexander Neundorf a.neundorf-w...@gmx.net: Hi, I'm not sure this is actually possible, but I'd like to build a rpm on a SUSE 11.1 machine, which can also be installed on a SUSE 10.1 machine. Beside the compression type problem it's

Re: [CMake] Watcom Support

2010-03-03 Thread J Decker
OKay these should work great, but have to be done on a per-target basis, rather than being built into the generator. How would the ...\share\cmake-2.8\Modules\Platform\Windows-wcl386.cmake get modified to set link_flags? On Mon, Mar 1, 2010 at 9:28 PM, Tyler Roscoe ty...@cryptio.net wrote:

[CMake] Order of installation items

2010-03-03 Thread James Bigler
It looks as though installation of items is different than I thought it should be. CMakeLists.txt install(CODE message(\start\)) add_subdirectory(sub1) install(CODE message( \end\)) sub1\CMakeLists.txt: install(CODE message(\--sub1\)) In this example the following output is

[CMake] Qt - Private implementation slot and required cmake special rules

2010-03-03 Thread Olaf Peter
I try to use Qt's internal Stuff for my own purpose. I want to compile the moc file separately which is with cmake very simple. Anyway, I have to tweak moc for this. I have to add the private type to the moc file generated otherwise I get an compiler error about incomplete type (the public header

[CMake] Using absolute values in include_directories directive

2010-03-03 Thread Felipe Sodre dos Santos
Hello all. Im trying to set an include directory which is actually an environment variable inside VC++ , $(QTDIR), and thus I tried the following: ... include_directories( $(QTDIR)/include ) ... It comes up that in the resulting SLN file, it translates that directive to

Re: [CMake] Qt - Private implementation slot and required cmake special rules

2010-03-03 Thread John Drescher
On Wed, Mar 3, 2010 at 1:37 PM, Olaf Peter ope-de...@gmx.de wrote: I try to use Qt's internal Stuff for my own purpose. I want to compile the moc file separately which is with cmake very simple. Anyway, I have to tweak moc for this. I have to add the private type to the moc file generated

Re: [CMake] Using absolute values in include_directories directive

2010-03-03 Thread John Drescher
On Wed, Mar 3, 2010 at 1:44 PM, Felipe Sodre dos Santos felipe.so...@totvs.com.br wrote: Hello all. Im trying to set an include directory which is actually an environment variable inside VC++ , $(QTDIR), and thus I tried the following: … include_directories(   $(QTDIR)/include )

Re: [CMake] Using absolute values in include_directories directive

2010-03-03 Thread Ryan Pavlik
You can do this at configure-time, by doing include_directories($ENV{WHATEVERDIR}) although that's generally discouraged - use a find module instead to set SOMEPACKAGE_INCLUDE_DIRS that you can use like: include_directories(${SOMEPACKAGE_INCLUDE_DIRS}) For the case of QT, see my recent email

Re: [CMake] Qt - Private implementation slot and required cmake special rules

2010-03-03 Thread Olaf Peter
John Drescher schrieb: On Wed, Mar 3, 2010 at 1:37 PM, Olaf Peter ope-de...@gmx.de wrote: I try to use Qt's internal Stuff for my own purpose. I want to compile the moc file separately which is with cmake very simple. Anyway, I have to tweak moc for this. I have to add the private type to

Re: [CMake] Using absolute values in include_directories directive

2010-03-03 Thread Felipe Sodre dos Santos
Hi John, thanks for answering. I'm actually porting a project from VC++ to be built using CMake tools, and thus I'm first translating the VCPROJ files into CMakeLists.txt files. I'll try what you said, but I still would like to know if there's a way to do what I was trying to do. Thanks !

Re: [CMake] CPack RPM: how to specify the compression type ?

2010-03-03 Thread Eric Noulard
2010/3/3 Alexander Neundorf a.neundorf-w...@gmx.net: RPM generator does not support custom rpmbuild parameter but it support custom spec file so depending on the solution (if it exists) it may already be possible or not  :-) Ok, found it, thanks to the friendly guys from SUSE :-) For

[CMake] CMake interview for FLOSS Weekly in about 1 hour

2010-03-03 Thread Bill Hoffman
At 4:30, I am going to be interviewed for FLOSS Weekly. The chat is here: http://irc.twit.tv/ The video is here: http://live.twit.tv/ Should be going on some time around 4:30 EST. -Bill ___ Powered by www.kitware.com Visit other Kitware

Re: [CMake] CMake interview for FLOSS Weekly in about 1 hour

2010-03-03 Thread Maik Beckmann
2010/3/3 Bill Hoffman bill.hoff...@kitware.com: At 4:30, I am going to be interviewed for FLOSS Weekly. wow! ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep

Re: [CMake] CMake interview for FLOSS Weekly in about 1 hour

2010-03-03 Thread Alexander Neundorf
On Wednesday 03 March 2010, Bill Hoffman wrote: At 4:30, I am going to be interviewed for FLOSS Weekly. The chat is here: http://irc.twit.tv/ The video is here: http://live.twit.tv/ Should be going on some time around 4:30 EST. We just saw it, cool :-) And thanks :-) Alex

Re: [CMake] CMake interview for FLOSS Weekly in about 1 hour

2010-03-03 Thread Andrew Maclean
Unfortunate acronym! I hope it wasn't like pulling teeth! Andrew On Thu, Mar 4, 2010 at 7:39 AM, Bill Hoffman bill.hoff...@kitware.com wrote: At 4:30, I am going to be interviewed for FLOSS Weekly. The chat is here: http://irc.twit.tv/ The video is here: http://live.twit.tv/ Should

Re: [CMake] CMake interview for FLOSS Weekly in about 1 hour

2010-03-03 Thread Marcus D. Hanwell
On Wed, Mar 3, 2010 at 5:15 PM, Andrew Maclean andrew.amacl...@gmail.comwrote: Unfortunate acronym! I hope it wasn't like pulling teeth! On Thu, Mar 4, 2010 at 7:39 AM, Bill Hoffman bill.hoff...@kitware.com wrote: At 4:30, I am going to be interviewed for FLOSS Weekly. The video is

[CMake] Canonical use of FindPackageHandleStandardArgs

2010-03-03 Thread Mateusz Loskot
Hi, I'm writing some FindXXX.cmake macros [1] and I'd like to master some best practices I use and I'm having troubles with picturing what should canonical use of FindPackageHandleStandardArgs look like. I'm aware I've used it incorrectly in many places. I'm looking for confirmation if it should

Re: [CMake] Canonical use of FindPackageHandleStandardArgs

2010-03-03 Thread Ryan Pavlik
I took a quick look at your MySQL script and can offer these suggestions: - The idiom that follows is outdated and unnecessary (no if-else needed because find_whatever won't run if the variable it's given already has a valid value, and find_package_handle... takes care of the silent bit.):

Re: [CMake] Canonical use of FindPackageHandleStandardArgs

2010-03-03 Thread Ryan Pavlik
snip If you're not doing find scripts that depend on other find scripts, then look in the archives from a month or so ago: I posted some sample find scripts that are modern and clean in style. You can also take a peek at everything except FindDirectShow.cmake (I didn't write that one or

[CMake] Find_Library question

2010-03-03 Thread Surya Kiran Gullapalli
Hello all, I'm using Find_Library call at several places to locate libraries. The document says if Find_Library finds the library it stores the path in a cache variable, and Find_Library does not gets called again for the variable. Now If I run configure, Find_Library seems to be trying to find