[CMake] cmake, boost on windows, and linking: shouldn't find_package have put BOOST_ROOT/lib into LIB?

2011-10-28 Thread Dan Kegel
I'm slowly learning cmake and converting some real software to it, targeting Linux, Windows, and Mac OS X. Along the way, I'm making minimal working examples (they're a lot easier to debug them than the real thing) and putting them up at http://code.google.com/p/winezeug/source/browse/#svn/trunk/cm

Re: [CMake] Wiki: version compatibility matrix

2011-10-28 Thread Johannes Zarl
Hello David, I just finished the updated version for 2.8.6. Can you maybe check again with the wiki admins if the Cite extension can be added to the CMake wiki? Cheers, Johannes Ceterum censeo emendationem "Cite" esse immuniendam. On Wednesday 05 October 2011 16:51:43 David Cole wrote: > S

Re: [CMake] Linker Include Path

2011-10-28 Thread Matthias Schweinoch
Sorry, never mind: Problem has resolved itself. The linker error was due to some other dependency. On 28/10/11 20:44, Matthias Schweinoch wrote: Hi all, I'm using cmake (2.8.5) to build a set of C++ libraries. I have a project directory structure which is basically organized like this: p

Re: [CMake] Linker Include Path

2011-10-28 Thread David Cole
Can you put a CMakeLists.txt in the xyz directory, like this? add_library(xyz xyz.c) And then in the src/CMakeLists file, do: add_subdirectory(xyz) ... add_library(src ${SOURCES}) target_link_libraries(src xyz) Or is there some reason that xyz.c must be in a different directory, but the same l

[CMake] Linker Include Path

2011-10-28 Thread Matthias Schweinoch
Hi all, I'm using cmake (2.8.5) to build a set of C++ libraries. I have a project directory structure which is basically organized like this: package/component/CMakeLists.txt package/component/inc/foo.hpp package/component/src/foo.cpp Boiled down, my CMakeLists.txt for this component looks

Re: [CMake] Dependency question

2011-10-28 Thread David Cole
On Fri, Oct 28, 2011 at 1:52 PM, Robert Dailey wrote: > I tested this and it works! I was using target_link_libraries() before which > sets the dependency but also links it. > I noticed that it creates a "fubar_UTILITY" project in addition to "fubar" > project in my solution when I specify it in a

[CMake] Blog series on Cross-Compiling from Windows for ARM Linux

2011-10-28 Thread Alistair Lowe
Hi Guys, I just wished to let you know about a blog series I'm working on: http://blog.quickforge.co.uk/2011/10/exploration-of-cross-compiling-on-windows-for-arm-linux-distributions/ It details my experiences working with CMake, Boost, Wt and more whilst cross-compiling from Windows for ARM GNU

Re: [CMake] Dependency question

2011-10-28 Thread Robert Dailey
I tested this and it works! I was using target_link_libraries() before which sets the dependency but also links it. I noticed that it creates a "fubar_UTILITY" project in addition to "fubar" project in my solution when I specify it in add_dependencies()... is this normal? What does the _UTILITY pr

Re: [CMake] Dependency question

2011-10-28 Thread Robert Dailey
On Fri, Oct 28, 2011 at 12:25 PM, David Cole wrote: > On Fri, Oct 28, 2011 at 1:06 PM, Robert Dailey wrote: > > I'm using CMake 2.8.6 and generating for VS 2003. > > I have a DLL project that my EXE project needs to depend on, however I > don't > > want my EXE to link against that DLL's import l

Re: [CMake] Dependency question

2011-10-28 Thread David Cole
On Fri, Oct 28, 2011 at 1:06 PM, Robert Dailey wrote: > I'm using CMake 2.8.6 and generating for VS 2003. > I have a DLL project that my EXE project needs to depend on, however I don't > want my EXE to link against that DLL's import library, since the EXE will > call LoadLibrary() to dynamically i

[CMake] Dependency question

2011-10-28 Thread Robert Dailey
I'm using CMake 2.8.6 and generating for VS 2003. I have a DLL project that my EXE project needs to depend on, however I don't want my EXE to link against that DLL's import library, since the EXE will call LoadLibrary() to dynamically import symbols from the DLL being built. I want the EXE projec

Re: [CMake] Weird linking error while cross compiling

2011-10-28 Thread Jose
I give up. I solved the problem with the solution Michael gave me. Actually this linking flag : -Bstatic was the causant of the troubles. Nevertheless now I get undefined references to functions defined in the library "portablexdr" . I have been trying to fix it for two days without success. The

Re: [CMake] Bug fix requests for the *next* release of CMake...

2011-10-28 Thread Robert Dailey
I just created a bug here: http://public.kitware.com/Bug/view.php?id=12545 The issue involves duplicate entries in the Add Remove Programs dialog in Windows 7 when installing upgrades for CMake using the installer. I'd like to see this cleaned up by the next release, as subsequent upgrades will su

[CMake] bash-script-like project

2011-10-28 Thread Andrea Crotti
I'm experiment a bit with CMake and now I would like to automate the configuration of my Emacs configuration. In my configuration I have many git submodules and some of them need to be actually compiled. So I just need to do a foreach loop and run for each of them the right command, very sim

[CMake] cpack ZipDLL / Nsis installer problem.

2011-10-28 Thread ycollette . nospam
Hello, I found a work around for my problem related to NSIS / ZipDLL. I rebuild the ZipDLL plugin and changed the OpenFile method: I force the use of SH_DENYNO. I still don't know why this is happening, but I am digging ... int ZipPlatform::OpenFile(LPCTSTR lpszFileName, UINT iMode, int iShareM

Re: [CMake] Bug fix requests for the *next* release of CMake...

2011-10-28 Thread Claudio Bley
Hi. This one, please: http://public.kitware.com/Bug/view.php?id=12273 (*very* easy ;)) And this one too: http://public.kitware.com/Bug/view.php?id=11773 Thanks, Claudio -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.htm

Re: [CMake] specify solution name with --build

2011-10-28 Thread Anton Sibilev
I've tried one more PROJECT and seems it's fixed now, thanks. 2011/10/26 David Cole > On Oct 26, 2011, at 6:03 AM, Anton Sibilev > wrote: > > Seem I've found issue, in CMakeCache.txt I have two targets: > > //Value Computed by CMake > Project_BINARY_DIR:STATIC=C:/_work/test_build > //Value Comp