Re: [CMake] Setting up a proxy server that Cmake knows about

2009-05-19 Thread Philip Lowman
On Mon, May 18, 2009 at 7:58 PM, Tyler Roscoe ty...@cryptio.net wrote: On Mon, May 18, 2009 at 05:38:48PM -0600, Lober, Randy wrote: I find a command set(zlib_url http://www.zlib.net/zlib-1.2.3.tar.gz PARENT_SCOPE) How do I set values for the http proxy and the http proxy port such

[CMake] Linking object file with executable

2009-05-19 Thread ankit jain
Hi all, My Cmakelists contains: set(myobj ${CMAKE_CURRENT_SOURCE_DIR}/../objfolder/myfile.obj) add_executable(myexe main.c ${myobj}) This myfile.obj object file is generated while building objfolder before creating this executable Now on building this executable i got a warning: main.obj:

Re: [CMake] Problem with FindBoost.cmake

2009-05-19 Thread Philip Lowman
On Sun, May 17, 2009 at 2:35 PM, Robert Dailey rcdai...@gmail.com wrote: On Sun, May 17, 2009 at 12:16 PM, Philip Lowman phi...@yhbt.com wrote: On Sun, May 17, 2009 at 12:26 AM, Robert Dailey rcdai...@gmail.comwrote: Hi, I have built Boost 1.39 on Windows with static libraries, and they are

[CMake] Howto use targets from several directories in the install clause?

2009-05-19 Thread Dmytro Ovdiienko
Hi all, I'm trying to write install instruction for my main project (DLL) that consists from several projects (LIBs). This instruction should copy all public headers from all dependent targets to the destination directory. I expected to use following sample but it is erroneous: install (

[CMake] CMake Error: Cannot determine link language for target io.

2009-05-19 Thread Mats Kindahl
Hi all, I have an example case where I want to decide the subsystems to include dynamically. However, when running CMake, I get the error above. Anybody can tell me why I get the error and what to do about it? Best wishes, Mats Kindahl I have the following CMakeLists.txt files:

Re: [CMake] CMake Error: Cannot determine link language for target io.

2009-05-19 Thread Hendrik Sattler
Zitat von Mats Kindahl m...@sun.com: I have an example case where I want to decide the subsystems to include dynamically. However, when running CMake, I get the error above. Anybody can tell me why I get the error and what to do about it? You could give your files a file ending like

Re: [CMake] CMake Error: Cannot determine link language for target io.

2009-05-19 Thread Mats Kindahl
Hi Hendrik, Thanks for the reply. Hendrik Sattler wrote: Zitat von Mats Kindahl m...@sun.com: I have an example case where I want to decide the subsystems to include dynamically. However, when running CMake, I get the error above. Anybody can tell me why I get the error and what to do about

Re: [CMake] FindQt4 stubbornly finding Qt3

2009-05-19 Thread Zach Laine
On Tue, May 19, 2009 at 12:24 AM, Clinton Stimpson clin...@elemtech.com wrote: The only way I know how to do that is to include both Qt4 and Qt3. The only way to do what? I'm just trying to use Qt 4.x, for any x, and so far can't. find_package(Qt3) find_package(Qt4) which is not

Re: [CMake] CMake Error: Cannot determine link language for target io.

2009-05-19 Thread Hendrik Sattler
Zitat von Mats Kindahl m...@sun.com: Hendrik Sattler wrote: Zitat von Mats Kindahl m...@sun.com: I have an example case where I want to decide the subsystems to include dynamically. However, when running CMake, I get the error above. Anybody can tell me why I get the error and what to do

Re: [CMake] FindQt4 stubbornly finding Qt3

2009-05-19 Thread Andreas Pakulat
On 19.05.09 08:40:32, Zach Laine wrote: On Tue, May 19, 2009 at 12:24 AM, Clinton Stimpson clin...@elemtech.com wrote: What about a minimal CMakeLists.txt file? === find_package(Qt4) message(${QT_INCLUDE_DIR}) === When I run this: find_package(Qt4)

[CMake] CMake does not pass CMAKE_OSX_SYSROOT and CMAKE_OSX_DEPLOYMENT_TARGET when running TRY_COMPILE

2009-05-19 Thread Michael Wild
Hi all Currently CMake doesn't pass CMAKE_OSX_SYSROOT and CMAKE_OSX_DEPLOYMENT_TARGET to the test project when running TRY_COMPILE. I filed a bug report for that and attached a patch to it: http://public.kitware.com/Bug/view.php?id=9051 HTH Michael

Re: [CMake] FindQt4 stubbornly finding Qt3

2009-05-19 Thread Zach Laine
On Tue, May 19, 2009 at 9:11 AM, Andreas Pakulat ap...@gmx.de wrote: Thats what Clinton did, so how about trying exactly what he wrote? Ok, removing the two message() lines (which is exactly what Clinton wrote) produces: -- Found Qt-Version 4.3.5 -- Configuring done -- Generating done -- Build

Re: [CMake] Linking object file with executable

2009-05-19 Thread Tyler Roscoe
On Tue, May 19, 2009 at 05:38:15PM +0530, ankit jain wrote: add_executable(myexe main.c ${myobj}) main.obj: warning: earlier declaration of a function f1() found in myfile.obj: second definition ignored.. This means it is taking the f1() function from myfile.obj but i want f1() function

Re: [CMake] CMake Error: Cannot determine link language for target io.

2009-05-19 Thread Mats Kindahl
Hendrik Sattler wrote: Zitat von Mats Kindahl m...@sun.com: Hendrik Sattler wrote: Zitat von Mats Kindahl m...@sun.com: I have an example case where I want to decide the subsystems to include dynamically. However, when running CMake, I get the error above. Anybody can tell me why I get

Re: [CMake] FindQt4 stubbornly finding Qt3

2009-05-19 Thread Clinton Stimpson
Zach Laine wrote: On Tue, May 19, 2009 at 9:11 AM, Andreas Pakulat ap...@gmx.de wrote: Thats what Clinton did, so how about trying exactly what he wrote? Ok, removing the two message() lines (which is exactly what Clinton wrote) produces: -- Found Qt-Version 4.3.5 -- Configuring done

Re: [CMake] FindQt4 stubbornly finding Qt3

2009-05-19 Thread Andreas Pakulat
On 19.05.09 09:42:26, Zach Laine wrote: As for debugging FindQt4.cmake, surely I'm not the only person ever to try to use FindQt4 with qt3-devel and qt4-devel, plus another user-installed Qt version. Well, judging by my brains history of this list, you're certainly the first to have this

Re: [CMake] CMake Error: Cannot determine link language for target io.

2009-05-19 Thread Hendrik Sattler
Zitat von Mats Kindahl m...@sun.com: Ideally, I would like to copy or build the libraries in a central lib/ directory similar to how I copy all the include files to the include/ directory, but how is that supported by CMake? See

Re: [CMake] FindQt4 stubbornly finding Qt3

2009-05-19 Thread Clinton Stimpson
Andreas Pakulat wrote: On 19.05.09 09:42:26, Zach Laine wrote: As for debugging FindQt4.cmake, surely I'm not the only person ever to try to use FindQt4 with qt3-devel and qt4-devel, plus another user-installed Qt version. Well, judging by my brains history of this list, you're

[CMake] FIND_PATH finds two out of three?

2009-05-19 Thread e...@cs.bgu.ac.il
I'm writing a program which is based on 3 external libs, Poco, ARToolKit and opencv, now the locations in the include folder is has followd: opencv headers are in /usr/include/opencv folder, Poco headers are in /usr/include/Poco folder and ARToolKit headers are in /usr/include/AR folder. I'm

Re: [CMake] FIND_PATH finds two out of three?

2009-05-19 Thread Christopher Harvey
I don't know how the ARTK library is installed on linux systems, but you could add the NO_DEFAULT_PATH option to find_path...chances are it's looking in a default path and picking up a header in /usr/include before getting to your specified directories. What makes you think the /usr/include is

Re: [CMake] CMake Error: Cannot determine link language for target io.

2009-05-19 Thread Mats Kindahl
Hendrik Sattler wrote: Zitat von Mats Kindahl m...@sun.com: Ideally, I would like to copy or build the libraries in a central lib/ directory similar to how I copy all the include files to the include/ directory, but how is that supported by CMake? See

Re: [CMake] FIND_PATH finds two out of three?

2009-05-19 Thread Christopher Harvey
I'm not sure how to explain the fact that arMulti.h is reported as located in /usr/includeI'm not sure but maybe you have to delete the CMakeCache file...I don't think cmake has any bugs like finding files that don't exist. Your script seems fine from what I see. Maybe you can post a bit more?

Re: [CMake] FIND_PATH finds two out of three?

2009-05-19 Thread e...@cs.bgu.ac.il
On Tue 19 May 3:29 2009 Christopher Harvey wrote: I'm not sure how to explain the fact that arMulti.h is reported as located in /usr/includeI'm not sure but maybe you have to delete the CMakeCache file...I don't think cmake has any bugs like finding files that don't exist. Your script

[CMake] Eclipse CDT link location

2009-05-19 Thread Javier Sanz
Hi Everyone, I am trying to integrate Eclipse as development IDE in our repository. So far Cmake creates the projects and Eclipse compiles them properly. Unfortunately I haven't been able to register the sources and get the Eclipse autocompletion features. Having a look to the .project I see :

Re: [CMake] FindQt4 stubbornly finding Qt3

2009-05-19 Thread Alexander Neundorf
On Tuesday 19 May 2009, Zach Laine wrote: On Tue, May 19, 2009 at 9:11 AM, Andreas Pakulat ap...@gmx.de wrote: Thats what Clinton did, so how about trying exactly what he wrote? Ok, removing the two message() lines (which is exactly what Clinton wrote) produces: -- Found Qt-Version 4.3.5

Re: [CMake] Howto use targets from several directories in the install clause?

2009-05-19 Thread Alexander Neundorf
On Tuesday 19 May 2009, Dmytro Ovdiienko wrote: Hi all, I'm trying to write install instruction for my main project (DLL) that consists from several projects (LIBs). This instruction should copy all public headers from all dependent targets to the destination directory. I expected to use

[CMake] doing simple math in cmake or useless foreach( RANGE )

2009-05-19 Thread Hendrik Sattler
Hi, either I cannot find it or it's not there: doing simple mathematic things like substract 1 from a variable. If that's not present, I do not understand how LIST( LENGTH MYLIST COUNT ) FOREACH ( index RANGE ${COUNT} ) list ( GET MYLIST ${index} entry ) will address non-present indexes

Re: [CMake] doing simple math in cmake or useless foreach( RANGE )

2009-05-19 Thread Matthew Woehlke
Hendrik Sattler wrote: either I cannot find it or it's not there: doing simple mathematic things like substract 1 from a variable. [snip] Any ideas? cmake --help-command math ?? -- Matthew Please do not quote my e-mail address unobfuscated in message bodies. -- Here endeth the rant... which

Re: [CMake] LINK_DIRECTORIES before ADD_EXECUTABLE?

2009-05-19 Thread John Platt
Hi Tyler, Thanks for your answers. Returning to whether the boost libraries are statically or dynamically linked, I probably need to use SET(Boost_USE_STATIC_LIBS ON). John. - Original Message - From: Tyler Roscoe ty...@cryptio.net To: John Platt jcpl...@dsl.pipex.com Cc:

Re: [CMake] Different output files based on build_type

2009-05-19 Thread James Bigler
On Thu, May 14, 2009 at 4:51 PM, Clinton Stimpson clin...@elemtech.comwrote: James Bigler wrote: I need to specify different output files for an add_custom_command for different build types in VS. The output file also needs to be added to an add_executable command. I'm not sure how to go

Re: [CMake] doing simple math in cmake or useless foreach( RANGE )

2009-05-19 Thread Nicolas Desprès
On Tue, May 19, 2009 at 6:29 PM, Hendrik Sattler p...@hendrik-sattler.de wrote: If that's not present, I do not understand how LIST( LENGTH MYLIST COUNT ) FOREACH ( index RANGE ${COUNT} ) list ( GET MYLIST ${index} entry ) will address non-present indexes in the list. I would the

Re: [CMake] doing simple math in cmake or useless foreach( RANGE )

2009-05-19 Thread Mats Kindahl
Hendrik Sattler wrote: Hi, either I cannot find it or it's not there: doing simple mathematic things like substract 1 from a variable. If that's not present, I do not understand how LIST( LENGTH MYLIST COUNT ) FOREACH ( index RANGE ${COUNT} ) list ( GET MYLIST ${index} entry )

[CMake] LINKER_LANGUAGE property

2009-05-19 Thread James Bigler
Is it possible to get what CMake thinks the linker language should be at configure time: add_executable(mytarget ${mysources}) get_target_property(linker_lang mytarget LINKER_LANGUAGE) message(linker_lang = ${linker_lang}) This produces linker_lang-NOTFOUND. I would like to know what linker