Re: [CMake] findBoost says it finds static unit testing libraries, but does not set them

2009-04-15 Thread Philip Lowman
On Thu, Apr 9, 2009 at 8:31 AM, Andreas Pakulat wrote: > On 09.04.09 12:49:09, Jonatan Bijl wrote: > > I've compiled the static versions of the boost libraries. When I use > > findBoost to detect the unit_test_framework, it gives the following > > message: > > Try to run cmake --trace to find out

Re: [CMake] Linking to a library with a "-"

2009-04-15 Thread Michael Jackson
building Boost with CMake and using FindBoost.cmake are two totally different things. Build boost however you want or get the official binaries from BoostPro.com and install as appropriate. THEN in your own CMakeLists.txt file use something like the following: set(Boost_USE_MULTITHREADED

Re: [CMake] find_package question

2009-04-15 Thread Philip Lowman
On Wed, Apr 15, 2009 at 4:21 PM, Alexander Neundorf wrote: > On Saturday 11 April 2009, Richard Quirk wrote: > ... > > I'd just like to plug my lint script for CMake files at this point. > > > > http://code.google.com/p/cmake-lint/ > > > > Among other things, it checks exactly the convention desc

Re: [CMake] Linking to a library with a "-"

2009-04-15 Thread David Doria
Mike, good idea, but I was trying to stay away from boost's cmake until they didn't make set a flag saying " I agree this is experimental" haha. Andreas, oh no! Wow what a terrible goof on my part! I forgot that I had added that second target... I'm sure that was the problem but I'll check it out

[CMake] Typo in documentation

2009-04-15 Thread David Solbach
Hi there, a collegue pointed me to a small typo in the documentation at: http://www.cmake.org/cmake/help/cmake2.6docs.html#variable:CMAKE_BUILD_TYPE --- # CMAKE_BUILD_TYPE: Specifies the build type for make based generators. This specifies what build type will be built in this tree. Possible v

Re: [CMake] iPhone development with CMake (xcode generator)

2009-04-15 Thread Alexander Neundorf
On Thursday 09 April 2009, you wrote: ... > I haven't done this yet, so correct me if I'm wrong. I suspect that > creating the xcode project for either is identical except for a view > varying things, such as library include directories, compiler flags, > preprocessor directives, etc. See my other

Re: [CMake] CMake and iPhone support

2009-04-15 Thread Alexander Neundorf
On Friday 10 April 2009, Robert Dailey wrote: > Can CMake generate an Xcode project for iPhone SDK development (For both > the simulator and device SDKs)? From the looks of it we cannot do that, > especially when we use MACOSX_BUNDLE in add_executable(). As Bill suggested, maybe you can do this vi

Re: [CMake] CMake generators (Xcode and Unix Makefile)

2009-04-15 Thread Alexander Neundorf
On Wednesday 15 April 2009, Michael Jackson wrote: > On Apr 15, 2009, at 9:57 AM, christophe laferriere wrote: ... > > - some of my headers are generated by cmake (myproj.h.in became > > myproj.h and is include in some tests for example) but I can't find > > those files in the xcode project I get.

Re: [CMake] find_package question

2009-04-15 Thread Alexander Neundorf
On Saturday 11 April 2009, Richard Quirk wrote: ... > I'd just like to plug my lint script for CMake files at this point. > > http://code.google.com/p/cmake-lint/ > > Among other things, it checks exactly the convention described above. > Running it on cmake/Modules/*.* results in 7826 "bad practic

Re: [CMake] CMAKE_MODULE_PATH Question

2009-04-15 Thread Alexander Neundorf
On Saturday 11 April 2009, Robert Dailey wrote: > The latter does not work for me. I don't know what to tell you. > > On Sat, Apr 11, 2009 at 6:43 AM, Daniel Nelson wrote: > > On Thursday 09 April 2009 11:58:55 am Robert Dailey wrote: > > > Sorry, the missing $ was a typo. The problem was that I w

Re: [CMake] Imported libraries lookup

2009-04-15 Thread Brad King
Sergey Rudchenko wrote: Hi all, My global generator adds some imported libraries in EnableLanguage method, but the TARGET_LINK_LIBRARIES command doesn't obey that fact the libraries are imported. Here is the code which adds an imported library: void cmGlobalSymbianMmpGenerator ::EnableLangua

Re: [CMake] WinCE Support

2009-04-15 Thread Clemens Arth
Andreas Pokorny schrieb: 2009/4/15 Clemens Arth : That's a great idea actually, but I already mentioned exactly this about 9 months ago when we started the discussion. It would definitely be the best solution, but at that time I could not figure out how to do it in a clever way because there

Re: [CMake] WinCE Support

2009-04-15 Thread Andreas Pokorny
2009/4/15 Andreas Pokorny : > Hi Clemens, > > Finally.. Here is an updated patch that integrates both WinCE patches: > http://cmake.org/Bug/view.php?id=7919 > > > With a small bug ... $(INSTRUCTIONSET) and $(ARCHFAM) and $(_ARCHFAM_) > is not appended to the C flags, but only C++ flags. And anothe

[CMake] Imported libraries lookup

2009-04-15 Thread Sergey Rudchenko
Hi all, My global generator adds some imported libraries in EnableLanguage method, but the TARGET_LINK_LIBRARIES command doesn't obey that fact the libraries are imported. Here is the code which adds an imported library: void cmGlobalSymbianMmpGenerator ::EnableLanguage(std::vectorconst& lang

Re: [CMake] WinCE Support

2009-04-15 Thread Andreas Pokorny
Hi Clemens, Finally.. Here is an updated patch that integrates both WinCE patches: http://cmake.org/Bug/view.php?id=7919 With a small bug ... $(INSTRUCTIONSET) and $(ARCHFAM) and $(_ARCHFAM_) is not appended to the C flags, but only C++ flags. kind regards Andreas Pokorny __

Re: [CMake] WinCE Support

2009-04-15 Thread Andreas Pokorny
2009/4/15 Clemens Arth : > > That's a great idea actually, but I already mentioned exactly this about 9 > months ago when we started the discussion. It would definitely be the best > solution, but at that time I could not figure out how to do it in a clever > way because there is (to my knowledge)

Re: [CMake] Linking to a library with a "-"

2009-04-15 Thread Andreas Pakulat
On 15.04.09 11:09:43, David Doria wrote: > I'm using Fedora 10. The KDevelop3 and normal makefile generator produce the > same result. CMake version: ccmake version 2.6-patch 3 > > My CMakeLists.txt file is: > > cmake_minimum_required(VERSI

Re: [CMake] Linking to a library with a "-"

2009-04-15 Thread Mike Jackson
Ah.. ok. Did you try to use "FindBoost" and then use the "Boost_PROGRAM_OPTIONS_LIBRARIES" variables? set(Boost_USE_MULTITHREADED ON) # which is the default FIND_PACKAGE(Boost 1.36 COMPONENTS program_options) INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS}) # Include the Boost Headers LINK_DIRECTORIES(

Re: [CMake] Linking to a library with a "-"

2009-04-15 Thread David Doria
Tyler - yep, I did try putting it in quotes, and it had no affect. Mike - I am not trying to compile boost. My naming may have been misleading. Boost/ProgramOptions is in my Examples/ folder. I am trying to build an example, call it instead "ExampleBoostProgramOptions.cpp", and only link to boost_

Re: [CMake] Linking to a library with a "-"

2009-04-15 Thread Mike Jackson
Any particular reason you are doing the compiling of the Boost Program Options library instead of letting boost build boost? There is experimental support for building Boost with CMake in the head SVN Boost repository if you are looking to use CMake with boost? Just wondering. Mike Jackson On We

Re: [CMake] Linking to a library with a "-"

2009-04-15 Thread Tyler Roscoe
On Wed, Apr 15, 2009 at 11:09:43AM -0400, David Doria wrote: > TARGET_LINK_LIBRARIES(MultipleLists boost_program_options-mt) Sort of a long shot, but did you try putting quotes around "boost_program_opotions-mt"? tyler ___ Powered by www.kitware.com Vi

Re: [CMake] Linking to a library with a "-"

2009-04-15 Thread David Doria
I'm using Fedora 10. The KDevelop3 and normal makefile generator produce the same result. CMake version: ccmake version 2.6-patch 3 My CMakeLists.txt file is: cmake_minimum_required(VERSION 2.6) Project(BoostProgramOptions) INCLUDE_DIRECT

Re: [CMake] Project as a target

2009-04-15 Thread Tyler Roscoe
On Wed, Apr 15, 2009 at 10:06:59AM +0200, Marcel Loose wrote: > bigproject > projectA > subA1 > subA2 > projectB > subB1 > > I would like to be able to build any of these projects stand-alone (e.g. > 'make projectA'). This is possible wrt. dependencies. However, CMake > doesn't gen

Re: [CMake] CMake generators (Xcode and Unix Makefile)

2009-04-15 Thread Michael Jackson
On Apr 15, 2009, at 9:57 AM, christophe laferriere wrote: Hi all, I was using classic Unix Makefile generator until I found a webpage explaining CMake could produce a nice xcode project file using "cmake -G Xcode" so I ran that command in my source directory and I get a nice xcode proje

[CMake] CMake generators (Xcode and Unix Makefile)

2009-04-15 Thread christophe laferriere
Hi all, I was using classic Unix Makefile generator until I found a webpage explaining CMake could produce a nice xcode project file using "cmake - G Xcode" so I ran that command in my source directory and I get a nice xcode project. This is great but I'm facing some drawback and was wonde

Re: [CMake] Linking to a library with a "-"

2009-04-15 Thread Brad King
David Doria wrote: When I add a line like this: TARGET_LINK_LIBRARIES(MyProject boost_program_options-mt) in my link.txt file, -lboost_program_options gets produced instead (without the "-mt"), and therefore the library cannot be found. I've been creating a symlink with the name without the -

Re: [CMake] Getting the compiler version?

2009-04-15 Thread Brad King
Philip Lowman wrote: On Tue, Apr 14, 2009 at 11:17 AM, Bartlett, Roscoe A > wrote: Thanks for the pointer. We will look into this and try to create a module that other people could use also. However, it would be good if we could get this added as an offic

Re: [CMake] managing lists with space separated elements

2009-04-15 Thread Brad King
Piotr Dobrogost wrote: Brad King wrote: Last year I started working on new features to allow projects to specify flags with modern semicolon-separated lists. See my comment from 2008-10-09 here: http://www.cmake.org/Bug/view.php?id=6493 It looks like that is the 3rd solution I suggested p

Re: [CMake] WinCE Support

2009-04-15 Thread Clemens Arth
Andreas Pokorny schrieb: Hi, 2009/4/15 Clemens Arth : [...] In my case for example, I build it for Win32 and Windows Mobile 5 in separate directories which works great. If you install an SH4 SDK and an ARM SDK, preconfigure the cache files and configure/build in separate directories with dif

[CMake] Linking to a library with a "-"

2009-04-15 Thread David Doria
When I add a line like this: TARGET_LINK_LIBRARIES(MyProject boost_program_options-mt) in my link.txt file, -lboost_program_options gets produced instead (without the "-mt"), and therefore the library cannot be found. I've been creating a symlink with the name without the -mt and that works, but

Re: [CMake] WinCE Support

2009-04-15 Thread Andreas Pokorny
Hi, 2009/4/15 Clemens Arth : > [...] > In my case for example, I build it for Win32 and Windows Mobile 5 in > separate directories which works great. If you install an SH4 SDK and an ARM > SDK, preconfigure the cache files and configure/build in separate > directories with different settings it sh

Re: [CMake] WinCE Support

2009-04-15 Thread Andreas Pokorny
Hello, 2009/4/15 Clemens Arth : > Hi again, > > I've installed the 2008 Express version, and it's not possible to install > any Mobile SDK afterwards. Microsoft supports Smat Devices in every version > except for the Express one. Even if you hack the msi file to install (not > checking if the righ

Re: [CMake] WinCE Support

2009-04-15 Thread Clemens Arth
Hi again, I've installed the 2008 Express version, and it's not possible to install any Mobile SDK afterwards. Microsoft supports Smat Devices in every version except for the Express one. Even if you hack the msi file to install (not checking if the right VS version is installed), it is still

[CMake] Project as a target

2009-04-15 Thread Marcel Loose
Hi all, I have a project structure, where my toplevel project consists of several (sub)projects, which, in turn, may consist of subprojects. bigproject projectA subA1 subA2 projectB subB1 I would like to be able to build any of these projects stand-alone (e.g. 'make projectA'). T

[CMake] Convert libtool convenience libraries to cmake

2009-04-15 Thread Andreas Pokorny
Hi, 2009/4/15 Yevgen Muntyan : > How do you do it, do you manually add -fPIC or something to compiler > flags? Could you > show the CMakeLists.txt? We only have special values for gcc: IF(CMAKE_COMPILER_IS_GNUCC) # PS: cannot remember why we do that?    SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG "

Re: [CMake] WinCE Support

2009-04-15 Thread Clemens Arth
Hi, well, I have not tested it with the Express versions of 2005 or 2008 (I think Microsoft already stopped support of Express 2005, so there is only Express 2008 left). I will try to get it to run with an Express Version of 2008, although I have no idea of support for Windows Mobile devices

Re: [CMake] Why does cmake adds /STACK:10000000 for msvc linker?

2009-04-15 Thread Andreas Pokorny
Hello, 2009/4/12 Christian Ehrlicher : > Hi, > > I don't understand the reason behind this. We've a very huge memory > footprint because of this on kde4/windows - kded4.exe has ~30 Threads > which means 300MB of stack! > > Is there an easy way to change this? In http://cmake.org/Bug/view.php?id=7

Re: [CMake] Why does cmake adds /STACK:10000000 for msvc linker?

2009-04-15 Thread Timenkov Yuri
I've asked the same question some time ago ( http://www.mail-archive.com/cmake@cmake.org/msg14883.html). We had a problem with big number of threads: the 32-bit address space can fit only ~200 threads with such huge stacks. So if you are writing multithreaded application, it is best to remove this