Re: [CMake] Problems finding dependence library

2012-09-21 Thread Bogdan Cristea
On Friday 21 September 2012 07:48:27 you wrote: > Thank you for your answer. I tried that but it didn't work. Paths are > alright. I even used absolute paths. What could be the problem of > that? Have a look at CMakeError.log -- Bogdan -- Powered by www.kitware.com Visit other Kitware open-sou

[CMake] platform independent combining several C/C++ libraries into one.

2012-09-21 Thread Witold E Wolski
Hi, I am wondering what is the cmake way to combine several libraries into one. How to do it on linux or windows is discussed here http://stackoverflow.com/questions/2157629/linking-static-libraries-to-other-static-libraries http://stackoverflow.com/questions/13128/how-to-combine-several-c-c-libr

Re: [CMake] Problems finding dependence library

2012-09-21 Thread Reza Housseini
On Fri, Sep 21, 2012 at 1:55 PM, Bogdan Cristea wrote: > On Friday 21 September 2012 07:48:27 you wrote: >> Thank you for your answer. I tried that but it didn't work. Paths are >> alright. I even used absolute paths. What could be the problem of >> that? > > Have a look at CMakeError.log > > -- >

Re: [CMake] platform independent combining several C/C++ libraries into one.

2012-09-21 Thread Leif Walsh
I use a technique similar to what's found here: http://www.mail-archive.com/cmake@cmake.org/msg28670/libutils.cmake On 21 Sep, 2012, at 8:07 AM, Witold E Wolski wrote: > Hi, > > I am wondering what is the cmake way to combine several libraries into one. > How to do it on linux or windows is d

[CMake] Custom command with included header file

2012-09-21 Thread Reza Housseini
Hello I want to add my own library libsieve.so with the header file Sieve.h to the custom target. I have the following setup: find_program(MKOCTFILE_EXECUTABLE mkoctfile) if(NOT MKOCTFILE_EXECUTABLE) message(SEND_ERROR "Failed to find mkoctfile, is it in your $PATH?") endif() set(OCT_FILE "mult

Re: [CMake] 'NMake Makefiles' generate does not support parallel builds (/MP)?

2012-09-21 Thread Andreas Haferburg
My bad, we're not using nmake but msbuild in Jenkins (command line only). Judging from the compilation speed, I'm pretty sure it respects the /MP flag. Best regards Andreas On 20.09.2012 18:24, Bill Hoffman wrote: nmake does not do parallel builds. Try using jom. http://blog.qt.digia.com/2

Re: [CMake] 'NMake Makefiles' generate does not support parallel builds (/MP)?

2012-09-21 Thread Bill Hoffman
On 9/21/2012 8:36 AM, Andreas Haferburg wrote: My bad, we're not using nmake but msbuild in Jenkins (command line only). Judging from the compilation speed, I'm pretty sure it respects the /MP flag. Best regards Andreas Another option is the new ninja generator. It is a bit slower on the first

Re: [CMake] 'NMake Makefiles' generate does not support parallel builds (/MP)?

2012-09-21 Thread Bill Hoffman
On 9/20/2012 7:42 PM, Loaden wrote: As I know, qmake support /MP on command line builds after set ENV CL=/MP, and nmake can do parallel builds. Follow the MS docs: cl a.cpp b.cpp c.cpp /MP should works well on command line. Seems CMake does not implements this. So, can I request a feature for thi

Re: [CMake] 'NMake Makefiles' generate does not support parallel builds (/MP)?

2012-09-21 Thread Mateusz Loskot
On 21 September 2012 15:20, Bill Hoffman wrote: > On 9/20/2012 7:42 PM, Loaden wrote: >> >> As I know, qmake support /MP on command line builds after set ENV >> CL=/MP, and nmake can do parallel builds. >> Follow the MS docs: >> cl a.cpp b.cpp c.cpp /MP should works well on command line. >> Seems

[CMake] Modifying a variable's value without resetting the docstring

2012-09-21 Thread David Doria
Is there a way to use the FORCE argument to set() without resetting the docstring? I tried: cmake_minimum_required(VERSION 2.6) PROJECT(CacheForce) # Create a variable set(MyVariable OFF CACHE BOOL "Description goes here." FORCE) # Change the value set(MyVariable ON CACHE FORCE) # error: "set gi

Re: [CMake] CMake and OS X compiler tools without SDK

2012-09-21 Thread Brad King
On 09/20/2012 06:28 PM, Sean McBride wrote: > On Thu, 20 Sep 2012 16:16:19 -0600, David Gobbi said: > >>> You sure? I'm pretty sure the 4.4 command line tools didn't need >> Xcode.app either. >> >> Could be. I'm still using XCode 3.2 on my own box. It's the people >> working under me who are us

Re: [CMake] -lrt finder

2012-09-21 Thread Alexander Neundorf
On Thursday 20 September 2012, Davis Ford wrote: > I'm building for Raspberry Pi - which is embedded Linux on Arm, distro > is Debian-based. > > I'm getting this linker error: > > libzmq.a(libzmq_la-clock.o): In function `zmq::clock_t::now_us()': > /home/pi/git/libzmq/src/clock.cpp:76: undefined

Re: [CMake] CMake and OS X compiler tools without SDK

2012-09-21 Thread David Gobbi
On Fri, Sep 21, 2012 at 9:34 AM, Brad King wrote: > > I just made a few more commits to address this before 2.8.10. > The main changes are: > > http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=a0a0877a > http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=230ea218 > > Now CMake will always veri

Re: [CMake] Modifying a variable's value without resetting the docstring

2012-09-21 Thread David Cole
You should avoid using FORCE in the first place. :-) But if you have to use it, then you should provide the type and documentation along with the call that uses FORCE. If you have multiple calls that require this information, consider using variables to eliminate the duplication and reference th

Re: [CMake] Modifying a variable's value without resetting the docstring

2012-09-21 Thread David Doria
On Fri, Sep 21, 2012 at 1:44 PM, David Cole wrote: > You should avoid using FORCE in the first place. > > :-) > > > But if you have to use it, then you should provide the type and > documentation along with the call that uses FORCE. If you have multiple > calls that require this information, consi

Re: [CMake] Modifying a variable's value without resetting the docstring

2012-09-21 Thread David Cole
On Fri, Sep 21, 2012 at 1:58 PM, David Doria wrote: > On Fri, Sep 21, 2012 at 1:44 PM, David Cole > wrote: > > You should avoid using FORCE in the first place. > > > > :-) > > > > > > But if you have to use it, then you should provide the type and > > documentation along with the call that uses

Re: [CMake] CMake and OS X compiler tools without SDK

2012-09-21 Thread Brad King
On 09/21/2012 12:36 PM, David Gobbi wrote: > Thanks, I just did a build of VTK under XCode 4.5 with cmake-next and > it no longer sets the CMAKE_OSX_SYSROOT to a non-existent > /Developer/SDKs/MacOSX10.7.sdk. And with my old XCode 3.2 system, > it _does_ find and use the existing MacOSX10.6.sdk.

Re: [CMake] 'NMake Makefiles' generate does not support parallel builds (/MP)?

2012-09-21 Thread Loaden
Thanks a lot! Ninja Generator is the best choice for me. It's works great on Linux, but has some issue for MSVC about share the precompiled header files. NMake works well with that. I will look into it. Thanks again! 2012/9/21 Bill Hoffman > - use the new ninja generator -- Best Regards Yuc

Re: [CMake] How to change PDB filename?

2012-09-21 Thread Loaden
I find a dirty way, but it does not work with Ninja generator. > function(fix_msvc_pch_shared_problem targetSelf targetBinary) > if ("${targetSelf}" STREQUAL "${targetBinary}") > return() > endif() > # NOTE: Dirty hack! until to find other way > get_filename_component(pdbpa

Re: [CMake] 'NMake Makefiles' generate does not support parallel builds (/MP)?

2012-09-21 Thread Loaden
Because I want share the MSVC's PCH files, so I have to set the compile PDB name: > get_filename_component(pdbpath ${${targetBinary}_PCH_BINARY_FILE} PATH) > get_target_property(targetCompileFlags ${targetSelf} COMPILE_FLAGS) > if (targetCompileFlags) > set(origCompileFlags ${t

Re: [CMake] CMake/Ninja support in Qt Creator

2012-09-21 Thread Loaden
Works well under Ubuntu 12.04 + Ninja 1.0. Thanks a lot! 2012/9/20 Peter Kümmel > On 19.09.2012 08:08, Wouter van Kleunen wrote: > >> >> Peter, >> >> i had 2.8.9-pre3 before, i upgraded to 2.8.9. But only after deleting >> the CMakeLists user file from qtcreator, deleting the build directory >>