Re: [CMake] Include-Dir order problem

2011-02-15 Thread Andreas Pakulat
On 16.02.11 03:48:03, Michael Hertling wrote: > On 02/15/2011 07:36 PM, Andreas Pakulat wrote: > > On 15.02.11 17:54:29, Michael Hertling wrote: > >> On 02/13/2011 01:27 AM, Andreas Pakulat wrote: > >>> Hi, > >>> > >>> I've got a somewhat tricky problem here with include directories. I'm > >>> buil

Re: [CMake] detecting build configuration in Visual Studio

2011-02-15 Thread Dominik Szczerba
Many thanks for your valuable feedback. I will be trying this solution out. Regards, Dominik On Wed, Feb 16, 2011 at 2:33 AM, Michael Hertling wrote: > On 02/15/2011 03:49 PM, Dominik Szczerba wrote: >> In MSVC I need to link different libraries depending on the chosen >> build type. I have two  

Re: [CMake] CPack and OpenSSL libraries

2011-02-15 Thread clin...@elemtech.com
Yeah, Qt uses them as plugins by default so BundleUtilities won't pick it up. You could also copy it manually like other Qt plugins, or configure Qt with the -openssl-link flag so it can copy the library for you. Clint - Reply message - From: "Crni Gorac" Date: Tue, Feb 15, 2011 3:38

Re: [CMake] Include-Dir order problem

2011-02-15 Thread Michael Hertling
On 02/15/2011 07:36 PM, Andreas Pakulat wrote: > On 15.02.11 17:54:29, Michael Hertling wrote: >> On 02/13/2011 01:27 AM, Andreas Pakulat wrote: >>> Hi, >>> >>> I've got a somewhat tricky problem here with include directories. I'm >>> building a couple of source files and for some of them I need to

Re: [CMake] detecting build configuration in Visual Studio

2011-02-15 Thread Michael Hertling
On 02/15/2011 03:49 PM, Dominik Szczerba wrote: > In MSVC I need to link different libraries depending on the chosen > build type. I have two questions: > > 1) If and how can I register my own build types >> http://www.cmake.org/Wiki/CMake_FAQ#How_can_I_specify_my_own_configurations_.28for_gener

Re: [CMake] Setting target destination and rpath per generator

2011-02-15 Thread Daryl N
Thank you! I did not know about $ORIGIN but that is indeed exactly what I need. From: Alexander Neundorf To: cmake@cmake.org Cc: Daryl N Sent: Tue, February 15, 2011 3:45:25 PM Subject: Re: [CMake] Setting target destination and rpath per generator On Tuesda

[CMake] Patch for watcom InstallRequiredSystemLibraries

2011-02-15 Thread J Decker
http://public.kitware.com/Bug/view.php?id=11866 ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org

Re: [CMake] Cross compilation question

2011-02-15 Thread Steven Wilson
I haven't done anything with toolchains. I will take a look at the page and give it a go. Thanks, Steve On Tue, Feb 15, 2011 at 3:16 PM, Peter Kümmel wrote: > On 15.02.2011 22:52, Steven Wilson wrote: > >> In my CMake configuration files I have something like the following: >> >> >> if(SYSTE

Re: [CMake] CPack and OpenSSL libraries

2011-02-15 Thread mervin
Download the latest ssl libs or which ever version you need. Then place them in your QT libs dir (or any dir)and call it for install. IF( WIN32 ) INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/qtlibs/libeay32.DLL ${CMAKE_CURRENT_SOURCE_DIR}/vcredist/ssleay32.DLL

[CMake] CPack and OpenSSL libraries

2011-02-15 Thread Crni Gorac
Am using CPack to create Windows and Mac installers for an application. The application is Qt based, and BundleUtilities is working great for me to pick up dependencies and such. However, I have problem that OpenSSL libraries, which are needed for some segments of functionality of my app, are not

Re: [CMake] Cross compilation question

2011-02-15 Thread Peter Kümmel
On 15.02.2011 22:52, Steven Wilson wrote: In my CMake configuration files I have something like the following: if(SYSTEM STREQUAL "iOS") set(CMAKE_C_COMPILER "foo" CACHE STRING "message" FORCE) set(CMAKE_CXX_COMPILER "bar" CACHE STRING "message" FORCE) endif(SYSTEM STREQUAL "iOS") D

Re: [CMake] Cross compilation question

2011-02-15 Thread Steven Wilson
In my CMake configuration files I have something like the following: if(SYSTEM STREQUAL "iOS") set(CMAKE_C_COMPILER "foo" CACHE STRING "message" FORCE) set(CMAKE_CXX_COMPILER "bar" CACHE STRING "message" FORCE) endif(SYSTEM STREQUAL "iOS") Then when configuring the system I pass -DSYSTEM

Re: [CMake] Cross-compiling: Cmake compiler and ABI check don´t work

2011-02-15 Thread Alexander Neundorf
Hi, On Friday 11 February 2011, Schmid Alexander wrote: > Hi, > > > > I am working with CMake 2.8.3 and trying to set up a cross-compiling > toolchain for an ARMCC that runs on a Windows system. > > > > What I´ve done up to now is that I set up a toolchain file that I am using > in combination wit

[CMake] Naive (stupid?) question

2011-02-15 Thread Carminati Federico
Hello, apologies for the stupid question. I have a large project and at times a change triggers unexpected consequences, i.e. very large recompilations, rebuild of the cmake makefiles and so on. Is there a way in cmake to understand why things happens? I mean which chain of dependencies caus

Re: [CMake] 2.8.5 version

2011-02-15 Thread David Cole
2011/2/15 Alexander Neundorf > On Monday 14 February 2011, David Cole wrote: > > On Mon, Feb 14, 2011 at 4:14 AM, Andrea Galeazzi > wrote: > > > I'm very interested in the feature discussed here: > > > http://www.mail-archive.com/cmake@cmake.org/msg34587.html but probably > it > > > won't enter

Re: [CMake] Setting target destination and rpath per generator

2011-02-15 Thread Alexander Neundorf
On Tuesday 15 February 2011, Daryl N wrote: > Hi, > > I have a question on the use of CPack. I have CMake setup to generate > binaries and shared libraries. Up until now I have only created a TGZ with > rpath set to ".". This has worked nicely, but now I would like to create a > Debian package f

Re: [CMake] Cross compilation question

2011-02-15 Thread Alexander Neundorf
On Monday 14 February 2011, Steven Wilson wrote: > My apologies if this question has been asked and answered previously.I > have a CMake system that I use for cross compilation for iOS software (ie > reset CMAKE_C_COMPILER, etc...). How do you do that ? You have to set CMAKE_C_COMPILER, CMAK

Re: [CMake] 2.8.5 version

2011-02-15 Thread Alexander Neundorf
On Monday 14 February 2011, David Cole wrote: > On Mon, Feb 14, 2011 at 4:14 AM, Andrea Galeazzi wrote: > > I'm very interested in the feature discussed here: > > http://www.mail-archive.com/cmake@cmake.org/msg34587.html but probably it > > won't enter into 2.8.4, so do you have any rough idea abo

Re: [CMake] Simple (?) problem with libraries & executable dependencies

2011-02-15 Thread Alexander Neundorf
On Tuesday 15 February 2011, Carminati Federico wrote: > Hello Michael, >thanks a lot for looking into my problem. It turns out that Mac OS X > behaves a bit oddly, in the sense that the name of the directory of > installation is in the libraries as well as in the executable. I solved the > pro

Re: [CMake] add_executable(...) with source from another path

2011-02-15 Thread Alan W. Irwin
On 2011-02-15 16:06-0200 Felipe Ferreri Tonello wrote: Hello guys, I'm new to CMake and I'm really enjoying it. Anyway.. I'm porting a gnu makefile project to CMake and I need to compile 3 sources code to generate one executable. What's the better way to do that with CMake? Use the full path

Re: [CMake] cpack 32bit rpm on a 64bit system

2011-02-15 Thread Eric Noulard
2011/2/15 Yngve Inntjore Levinsen : > Dear CMakers, > > I am trying to package a 32bit binary on a 64bit system. It breaks with the > (useless?) verbose output which follows below. What I could find of useful > information was in _CPack_Packages/Linux/RPM/rpmbuild.err, which stated > error: No co

Re: [CMake] FIND_PATH issue in FindQt4.cmake

2011-02-15 Thread Harinarayan Krishnan
Hi All, I reran my code using cmake 2.8.4rc and still get the same issue where FIND_PATH is picking the system directory for QT_CORE over my install directory passed through HINTS ${qt_headers}. If this is not related to CMAKE_FIND_FRAMEWORK should I file a bug report on this? Thanks, Hari On Tu

Re: [CMake] Include-Dir order problem

2011-02-15 Thread Andreas Pakulat
On 15.02.11 17:54:29, Michael Hertling wrote: > On 02/13/2011 01:27 AM, Andreas Pakulat wrote: > > Hi, > > > > I've got a somewhat tricky problem here with include directories. I'm > > building a couple of source files and for some of them I need to add an > > include-directory to the front of the

Re: [CMake] FIND_PATH issue in FindQt4.cmake

2011-02-15 Thread Andreas Pakulat
On 15.02.11 06:34:07, Harinarayan Krishnan wrote: > Hi All, > > Thanks for the help so far, I will check and see if CMake 2.8.4rc has the > same issue meanwhile I noticed that FIND_PATH seems to have special > instructions for Darwin machines with the use of CMAKE_FIND_FRAMEWORK on > page http://w

[CMake] add_executable(...) with source from another path

2011-02-15 Thread Felipe Ferreri Tonello
Hello guys, I'm new to CMake and I'm really enjoying it. Anyway.. I'm porting a gnu makefile project to CMake and I need to compile 3 sources code to generate one executable. What's the better way to do that with CMake? Thank you ___ Powered by www.k

[CMake] cpack 32bit rpm on a 64bit system

2011-02-15 Thread Yngve Inntjore Levinsen
Dear CMakers, I am trying to package a 32bit binary on a 64bit system. It breaks with the (useless?) verbose output which follows below. What I could find of useful information was in _CPack_Packages/Linux/RPM/rpmbuild.err, which stated error: No compatible architectures found for build I tried

Re: [CMake] Include-Dir order problem

2011-02-15 Thread Michael Hertling
On 02/13/2011 01:27 AM, Andreas Pakulat wrote: > Hi, > > I've got a somewhat tricky problem here with include directories. I'm > building a couple of source files and for some of them I need to add an > include-directory to the front of the list that cmake passes to the > compiler. At the same tim

Re: [CMake] mixed compilation with two compilers

2011-02-15 Thread David Cole
You should use ExternalProject, and possibly wrapper scripts to set environment variables for the projects that need to use the different compiler. (CC, CXX, FC env vars should be set during the configure stage, or you can pass them in as -D args to cmake) CMake does not support changing the compi

[CMake] mixed compilation with two compilers

2011-02-15 Thread Dominik Szczerba
I need to compile a few subprojects (each is a subfolder with one library and a corresponding CMakeLists.txt) with the Intel compiler while the rest of the libraries (organized the same way), including the executable, using the system compiler (GNU on linux, VC on Windows). I tried two solutions to

Re: [CMake] Setting target destination and rpath per generator

2011-02-15 Thread Eric Noulard
2011/2/15 David Cole : > You cannot do "cmake-ish" things in the CPACK_PROJECT_CONFIG_FILE. > > Neither install commands nor set_target_properties calls do anything in this > context. Yes you are right, but we may have expected that "CMAKE_INSTALL_RPATH" may be used at INSTALL time just like "CMAK

[CMake] detecting build configuration in Visual Studio

2011-02-15 Thread Dominik Szczerba
In MSVC I need to link different libraries depending on the chosen build type. I have two questions: 1) If and how can I register my own build types 2) How can I detect which one I am in for conditional linking Many thanks for any hints, Dominik ___ Po

Re: [CMake] Setting target destination and rpath per generator

2011-02-15 Thread David Cole
You cannot do "cmake-ish" things in the CPACK_PROJECT_CONFIG_FILE. Neither install commands nor set_target_properties calls do anything in this context. On Tue, Feb 15, 2011 at 9:36 AM, Daryl N wrote: > Sorry, don't know how to reply inline with this editor. Yes, > cpack_config.cmake is my C

Re: [CMake] Setting target destination and rpath per generator

2011-02-15 Thread Daryl N
Sorry, don't know how to reply inline with this editor. Yes, cpack_config.cmake is my CPACK_PROJECT_CONFIG_FILE. For rpath, here is what I have in the cpack config file: if (${CPACK_GENERATOR} STREQUAL "TGZ") set(CPACK_SET_DESTDIR OFF) set(CMAKE_INSTALL_RPATH ".") set_target_prope

Re: [CMake] FIND_PATH issue in FindQt4.cmake

2011-02-15 Thread Harinarayan Krishnan
Hi All, Thanks for the help so far, I will check and see if CMake 2.8.4rc has the same issue meanwhile I noticed that FIND_PATH seems to have special instructions for Darwin machines with the use of CMAKE_FIND_FRAMEWORK on page http://www.cmake.org/cmake/help/cmake-2-8-docs.html#command:find_path

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

2011-02-15 Thread David Cole
Show us your code. On Tue, Feb 15, 2011 at 8:08 AM, Kiran Gopal Patil wrote: > Hi , > > I do get this error while build a application using CMAKE. > Please help me in resolving this one. > I tried to use the SET_TARGET_PROPERTIES but not successful. > > I do have mix of C and C++ static libs in m

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

2011-02-15 Thread Kiran Gopal Patil
Hi , I do get this error while build a application using CMAKE. Please help me in resolving this one. I tried to use the SET_TARGET_PROPERTIES but not successful. I do have mix of C and C++ static libs in my project. -- Thanks & Regards, Kiran Patil _

[CMake] Global STATIC_LIBRARY_FLAGS_ ?

2011-02-15 Thread Johan Björk
Hi guys, Any plans to add a CMAKE_STATIC_LIBRARY_FLAGS_ ? It seems rather weird that I can set 'global' linking flags as well as compilation flags, but that the static_library step flags are tied to a target. I know this can all be 'hacked' with overriding the add_library() call, but it's not ver

Re: [CMake] CPACK_STRIP_FILES has no effect on DSOs

2011-02-15 Thread Moritz Moeller
On 02/11/2011 11:38 AM, Eric Noulard wrote: > So you may perfectly have shared lib in your build tree which are not stripped > and get them stripped in the package. Ha! I did not check that; i.e. we alway run 'make install' before 'make package' and I presumed that install location was where the s

Re: [CMake] Setting target destination and rpath per generator

2011-02-15 Thread Eric Noulard
2011/2/15 Daryl N : > Hi, > > I have a question on the use of CPack.  I have CMake setup to generate > binaries and shared libraries.  Up until now I have only created a TGZ with > rpath set to ".".  This has worked nicely, but now I would like to create a > Debian package for proper installation.