Re: [CMake] How to check for a symbol that requires two header files in CMake?

2012-11-28 Thread Sergei Nikulov
2012/11/29 Martin Sustrik > Hi all, > > I am trying to find out whether getifaddrs function is avialable. > > To get symbol getifaddrs defined you have to include both sys/types.h and > ifaddrs.h. Here's the synopsis of the function from the man page: > >#include >#include > >

[CMake] How to check for a symbol that requires two header files in CMake?

2012-11-28 Thread Martin Sustrik
Hi all, I am trying to find out whether getifaddrs function is avialable. To get symbol getifaddrs defined you have to include both sys/types.h and ifaddrs.h. Here's the synopsis of the function from the man page: #include #include int getifaddrs(struct ifaddrs **ifap)

[CMake] using find_package from within toolchain file

2012-11-28 Thread Dave Gomboc
Hello, I am attempting to use find_package within each toolchain file in combination with cross-compiling WebKit. The locations in which both WebKit and BuildRoot are situated on the Debian Linux systems are not standardized, but up to individual developers. The version of CMake is 2.8.7. WebKit'

Re: [CMake] Problem with Visual Studio 2010, Windows 7 64bit

2012-11-28 Thread Andrew Maclean
Hi David, I agree with what you are saying. Just to confirm it I built a series of programs (67 in the solution) that use boost (by using CMake as you describe below) for Visual Studio Express 2010 and 2012 (both 64-bit builds). CMake had no trouble finding the relevant build environment for VS

Re: [CMake] Find a library that matches a specific pattern

2012-11-28 Thread Michael Jackson
Have the first build generate a *.cmake file with all the libraries and their absolute paths listed in it. Then the second build simply looks for and reads that file to get the proper information about the libraries. -- Mike Jackson On Nov 28, 2012, at 3:36 PM, katie outram wrote: > I have a b

Re: [CMake] Find a library that matches a specific pattern

2012-11-28 Thread Keith Gardner
You can use file(GLOB variable [RELATIVE path] [globbing expression] ...) file( GLOB result ${first_build_dir} "filea*.lib") Result will contain a list of files that match the globbing expression. Enjoy! Keith From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of katie ou

[CMake] can CMake determine linker version ?

2012-11-28 Thread Ilias Miroslav
Dear experts, in recent versions of ld-linker I have to use this flags for static linking: target_link_libraries(${EXECUTABLE} -Wl,--no-export-dynamic) however, older versions, like "GNU ld version 2.17.50.0.6-20.el5 20061020" does not know the flag "--no-export-dynamic". Would it be pl

[CMake] Find a library that matches a specific pattern

2012-11-28 Thread katie outram
I have a build that depends on the output from another build. We can't combine the code into one build due to other issues. I need to get cmake to pass the values of the libraries I want to link against. I have worked out a find script for my second build that allows me to use the find_libra

[CMake] (no subject)

2012-11-28 Thread katie outram
I have a problem where I have a build that depends on the output from another build. If I pass cmake the value of the libraries I want to link against, I can see the libraries through my find script without a problem using the find_library command.My problem is that I don't want to make t

Re: [CMake] CMake 2.8.10 with Xcode 4.4.1

2012-11-28 Thread David Cole
I can't for the life of me reproduce this. I've tried on my own Mac with Xcode 4.2, and on a colleague's Mac with Xcode 4.5.2. I can't seem to find a 4.4.1 machine to try this out on... Is this a problem for anybody else using CMake 2.8.10 on a Mac with the Xcode generator? Can you send the full

Re: [CMake] Link flags not applied to static library

2012-11-28 Thread Paul Harris
Hi, I set this: set (STATIC_LIBRARY_FLAGS_RELWITHDEBINFO "${STATIC_LIBRARY_FLAGS_RELWITHDEBINFO} /LTCG") and it didn't seem to work. MSVC still has no LTCG flag set for any of my static libraries. does this feature work? cheers, Paul On 23 June 2011 01:02, Ben Medina wrote: > So that th

Re: [CMake] Problem with Visual Studio 2010, Windows 7 64bit

2012-11-28 Thread David Doria
On Wed, Nov 28, 2012 at 9:14 AM, John Drescher wrote: >> A colleague mentioned that with the same setup he was getting the same >> error, and then installed SP1 for VS 2010 and things started working. > > I also remember that Visual Studio 2012 RTM had an optimizer bug that > caused Qt application

Re: [CMake] Problem with Visual Studio 2010, Windows 7 64bit

2012-11-28 Thread John Drescher
> A colleague mentioned that with the same setup he was getting the same > error, and then installed SP1 for VS 2010 and things started working. I also remember that Visual Studio 2012 RTM had an optimizer bug that caused Qt applications to crash so the first thing I always do after installing VS

Re: [CMake] Testing Qt 5 Beta 2 CMake files

2012-11-28 Thread John Drescher
> I emailed before about reviewing Config files that are being shipped with Qt > 5 and got great feedback: > > http://thread.gmane.org/gmane.comp.kde.devel.buildsystem/7165/focus=41551 > > Now that Qt 5 beta 2 is out, I'd like to ask for feedback again on anything > that can still be changed befor

Re: [CMake] how to add_library with an already compiled lib in a zip file ?

2012-11-28 Thread Kay-Uwe 'Kiwi' Lorenz
Hi Martin, you have to add a custom command to generate your lib and make your custom target depending on it: add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/xxx.a COMMAND unzip -o ${CMAKE_CURRENT_SOURCE_DIR}/${ZIPFILE} DEPENDS ${CMA

Re: [CMake] how to add_library with an already compiled lib in a zip file ?

2012-11-28 Thread Andreas Pakulat
Hi, On Wed, Nov 28, 2012 at 1:41 PM, Martin Koller wrote: > Hi, > > I'm struggling with the following requirement: > I have a lib stored in a zip file (the lib is not built via cmake, e.g. > delivered from external company). > > I want a target to link against this lib and want to extract the li

Re: [CMake] Problem with Visual Studio 2010, Windows 7 64bit

2012-11-28 Thread David Cole
You should never allow Visual Studio or CMake installers to make changes to your environment. They are unnecessary and cause complications when multiple versions are installed. When I use cmake-gui, I double-click an icon on my desktop, or start it from an icon in the start menu. I almost never r

Re: [CMake] Problem with Visual Studio 2010, Windows 7 64bit

2012-11-28 Thread Titus von Boxberg
Am 28.11.2012 13:59, schrieb Michael Jackson: On Nov 28, 2012, at 7:37 AM, David Doria wrote: On Wed, Nov 28, 2012 at 4:22 AM, Andrew Maclean wrote: Interesting ... I have no problems, the only thing I can think of is that I had VS 2010 SP1 installed before I installed VS 2012 Express, I di

Re: [CMake] Problem with Visual Studio 2010, Windows 7 64bit

2012-11-28 Thread Michael Jackson
On Nov 28, 2012, at 7:37 AM, David Doria wrote: > On Wed, Nov 28, 2012 at 4:22 AM, Andrew Maclean > wrote: >> Interesting ... I have no problems, the only thing I can think of is that I >> had VS 2010 SP1 installed before I installed VS 2012 Express, I did not use >> any of the RC versions. >

[CMake] how to add_library with an already compiled lib in a zip file ?

2012-11-28 Thread Martin Koller
Hi, I'm struggling with the following requirement: I have a lib stored in a zip file (the lib is not built via cmake, e.g. delivered from external company). I want a target to link against this lib and want to extract the lib from the zip file only if this specific target is being built, and on

Re: [CMake] Problem with Visual Studio 2010, Windows 7 64bit

2012-11-28 Thread David Doria
On Wed, Nov 28, 2012 at 4:22 AM, Andrew Maclean wrote: > Interesting ... I have no problems, the only thing I can think of is that I > had VS 2010 SP1 installed before I installed VS 2012 Express, I did not use > any of the RC versions. Petr, A colleague mentioned that with the same setup he was

[CMake] Testing Qt 5 Beta 2 CMake files

2012-11-28 Thread Stephen Kelly
Hi there, I emailed before about reviewing Config files that are being shipped with Qt 5 and got great feedback: http://thread.gmane.org/gmane.comp.kde.devel.buildsystem/7165/focus=41551 Now that Qt 5 beta 2 is out, I'd like to ask for feedback again on anything that can still be changed bef

Re: [CMake] Problem with Visual Studio 2010, Windows 7 64bit

2012-11-28 Thread Andrew Maclean
Interesting ... I have no problems, the only thing I can think of is that I had VS 2010 SP1 installed before I installed VS 2012 Express, I did not use any of the RC versions. Sent from an Android tablet. On 28/11/2012 6:51 PM, "Petr Kmoch" wrote: > Hi all, > > VS 2012 and VS 2010 installed toge