Re: [CMake] find_library first searches for static libraries

2008-07-02 Thread Nicolas Desprès
On Wed, Jul 2, 2008 at 4:25 AM, Philip Lowman [EMAIL PROTECTED] wrote: On Tue, Jul 1, 2008 at 2:37 PM, Nicolas Desprès [EMAIL PROTECTED] wrote: Hi list, I'm looking for a way to say to find_library (cmake 2.6.0) that I prefer static libraries rather than shared libraries. It seems that

Re: [CMake] CPack ZIP error with NSIS on WinXP

2008-07-02 Thread Eric NOULARD
Le Tue, 1 Jul 2008 17:57:29 -0400, Mike Jackson [EMAIL PROTECTED] a écrit : I got the ZIP part to work by putting the 7zip.exe on my path in windows xp. The last problem is still that CPack is NOT copying my 3rd party libraries into the installer staging area. If I do a make install

[CMake] Adding C(XX)FLAGS by using an environment variable?

2008-07-02 Thread Mike Arthur
I'm wanting to try and add C(XX)FLAGS by using an environment variable so I can pass -fmessage-length=0 only when compiling inside Eclipse. Is there any way to do this? CMake doesn't seem to respect C(XX)FLAGS as environment variables at make time. -- Cheers, Mike Arthur

[CMake] ctest: how to skip tests?

2008-07-02 Thread Dave Milter
Hi. I have project with usage of cmake and ctest. Now I need to add tests, that may have sense or not have sense to run on certain machine. For example, if we have installed MySql and libmysql there is sense to test part of code working with mysql, but no sense to check parts that working with

Re: [CMake] ctest: how to skip tests?

2008-07-02 Thread Andreas Schneider
Dave Milter wrote: Hi. I have project with usage of cmake and ctest. Now I need to add tests, that may have sense or not have sense to run on certain machine. For example, if we have installed MySql and libmysql there is sense to test part of code working with mysql, but no sense to check

Re: [CMake] MSVC90.dll and Debug configuration

2008-07-02 Thread David Cole
That probably means you are loading some other release dll that depends on MSVC90.dll. You can use depends.exe on all the dlls that load prior to MSVC90.dll to figure out which one it is... On Wed, Jul 2, 2008 at 8:10 AM, Mehdi Rabah [EMAIL PROTECTED] wrote: Hi, I was wondering if it's

Re: [CMake] MSVC90.dll and Debug configuration

2008-07-02 Thread Mehdi Rabah
using dependency walker I see that a DLL built by my cmake-generated project depends on both msvcr90 and msvcr90d. any idea why ? On Wed, Jul 2, 2008 at 2:36 PM, David Cole [EMAIL PROTECTED] wrote: That probably means you are loading some other release dll that depends on MSVC90.dll. You can

Re: [CMake] CPack ZIP error with NSIS on WinXP

2008-07-02 Thread Mike Jackson
On Jul 2, 2008, at 3:25 AM, Eric NOULARD wrote: Le Tue, 1 Jul 2008 17:57:29 -0400, Mike Jackson [EMAIL PROTECTED] a écrit : I got the ZIP part to work by putting the 7zip.exe on my path in windows xp. The last problem is still that CPack is NOT copying my 3rd party libraries into the

Re: [CMake] CPack ZIP error with NSIS on WinXP

2008-07-02 Thread Eric Noulard
2008/7/2 Mike Jackson [EMAIL PROTECTED]: That was it. Thank you very much. I owe you one for that. I found some other bugs in my cmake code because of this. You are welcome :=) Last question. It looks like CPack is generating both a .exe and a .zip installer? Is this normal on windows? Do

Re: [CMake] MSVC90.dll and Debug configuration

2008-07-02 Thread Mehdi Rabah
my DLL was compiled with a static libraryhttp://www.google.fr/search?q=define%3Aleftoversourceid=navclient-ffie=UTF-8rlz=1B3GGGL_frFR273FR273so maybe the problem come from here. in my cmake files, I use a DEFINE_SYMBOL, but I don't think this is the problem. Ok thanks, I'll try to get the source

[CMake] CPack and Component Based Installers?

2008-07-02 Thread Mike Jackson
Is the information on the wiki page http://www.cmake.org/Wiki/ CMake:Component_Install_With_CPack up to date? I tried adding the necessary information into my own cmake files which didn't produce the proper installer. I then tried downloading the example project. The example project did not

Re: [CMake] Adding C(XX)FLAGS by using an environment variable?

2008-07-02 Thread Alan W. Irwin
On 2008-07-02 11:41+0100 Mike Arthur wrote: I'm wanting to try and add C(XX)FLAGS by using an environment variable so I can pass -fmessage-length=0 only when compiling inside Eclipse. Is there any way to do this? CMake doesn't seem to respect C(XX)FLAGS as environment variables at make time.

Re: [CMake] CPack and Component Based Installers?

2008-07-02 Thread David Cole
It's in CVS CMake... still under development... On Wed, Jul 2, 2008 at 10:49 AM, Mike Jackson [EMAIL PROTECTED] wrote: Is the information on the wiki page http://www.cmake.org/Wiki/CMake:Component_Install_With_CPack up to date? I tried adding the necessary information into my own cmake

Re: [CMake] CPack and Component Based Installers?

2008-07-02 Thread Bill Hoffman
David Cole wrote: It's in CVS CMake... still under development... It is in CMake 2.6.1 RC 6. -Bill ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] Adding C(XX)FLAGS by using an environment variable?

2008-07-02 Thread Mike Jackson
On Jul 2, 2008, at 6:41 AM, Mike Arthur wrote: I'm wanting to try and add C(XX)FLAGS by using an environment variable so I can pass -fmessage-length=0 only when compiling inside Eclipse. Is there any way to do this? CMake doesn't seem to respect C(XX) FLAGS as environment variables at

Re: [CMake] ctest: how to skip tests?

2008-07-02 Thread Dave Milter
On 7/2/08, Andreas Schneider [EMAIL PROTECTED] wrote: Dave Milter wrote: I have project with usage of cmake and ctest. Now I need to add tests, that may have sense or not have sense to run on certain machine. For example, if we have installed MySql and libmysql there is sense to

Re: [CMake] CPack and Component Based Installers?

2008-07-02 Thread Mike Jackson
OK. I can wait for a stable CMake. Maybe this should be added to the wiki page? -- Mike Jackson Senior Research Engineer Innovative Management Technology Services On Jul 2, 2008, at 10:53 AM, David Cole wrote: It's in CVS CMake... still under development... On Wed, Jul 2, 2008 at

Re: [CMake] Adding C(XX)FLAGS by using an environment variable?

2008-07-02 Thread Mike Jackson
On Jul 2, 2008, at 11:10 AM, Mike Arthur wrote: On Wednesday 02 July 2008 16:05:09 you wrote: Are you using the Eclipse generator or just the Makefiles generator? Also what version of CMake. Makefiles generator, CMake 2.6 so I don't want to do it at generation time. I'll try Alan's

Re: [CMake] Adding C(XX)FLAGS by using an environment variable?

2008-07-02 Thread Mike Arthur
On Wednesday 02 July 2008 16:24:25 you wrote: What problems does having the -fmessage-length=0 flag in a   makefile cause? It makes the output ugly if you are building from the console. Sounds like a lame reason I know! Really this is working around a limitation in Eclipse's CDT. -- Cheers,

Re: [CMake] Adding C(XX)FLAGS by using an environment variable?

2008-07-02 Thread Mike Jackson
Huh.. I thought it actually made it look better. Beauty is in the eyes of the beholder. :-) You might just want to put and OPTION(..) in your cmake file to toggle it on and off. Although each time you toggle the value everything is going to get rebuilt because the flags get changed.

[CMake] pkg-config and Cross_compiling

2008-07-02 Thread Wookey
OK. I have a cmake project and now 2.6 is out I am able to try cross-compiling. Initially I found that setting CMAKE_FIND_ROOT_PATH in my toolchina file didn't make any difference - eventually I worked out that that was becuase the project CMakeLists.txt file didn;t use any of the FIND_FILE

Re: [CMake] Adding C(XX)FLAGS by using an environment variable?

2008-07-02 Thread Mike Arthur
On Wednesday 02 July 2008 15:51:03 you wrote: export CC='gcc -g' Is it just 'export CXX' for C++ compiler? -- Cheers, Mike Arthur ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] pkg-config and Cross_compiling

2008-07-02 Thread Hendrik Sattler
Am Mittwoch, 2. Juli 2008 18:59:37 schrieb Wookey: I tried to fix the FindPkgConfig.cmake file to automaticaly do this, but found that it uses execute_process to call pkg-config and there seems to be no way to set an environment variable with this call. Am I missing something? Fixing this

Re: [CMake] OSX Leopard- compiling for Tiger and later

2008-07-02 Thread Mike Jackson
what happens if you just set the CMAKE_OSX_SYSROOT variable to the 10.4u sdk? Is that enough? -- Mike Jackson Senior Research Engineer Innovative Management Technology Services On Jul 2, 2008, at 1:47 PM, Sean McBride wrote: On 7/2/08 12:37 PM, Eric Torstenson said: Is there any

Re: [CMake] OSX Leopard- compiling for Tiger and later

2008-07-02 Thread Eric Torstenson
what happens if you just set the CMAKE_OSX_SYSROOT variable to the 10.4u sdk? Is that enough? Thanks to Sean's previous post, I set the following variables: IF (APPLE) SET (CMAKE_OSX_ARCHITECTURES i386)#x86_64 ppc ppc64 SET (CMAKE_OSX_SYSROOT

Re: [CMake] Adding C(XX)FLAGS by using an environment variable?

2008-07-02 Thread Alan W. Irwin
On 2008-07-02 18:23+0100 Mike Arthur wrote: On Wednesday 02 July 2008 15:51:03 you wrote: export CC='gcc -g' Is it just 'export CXX' for C++ compiler? Yes. For future reference the only documentation for setting compiler flags through environment variables that I can find at the present

Re: [CMake] pkg-config and Cross_compiling

2008-07-02 Thread Wookey
On 2008-07-02 19:39 +0200, Hendrik Sattler wrote: Am Mittwoch, 2. Juli 2008 18:59:37 schrieb Wookey: I tried to fix the FindPkgConfig.cmake file to automaticaly do this, but found that it uses execute_process to call pkg-config and there seems to be no way to set an environment variable

[CMake] CMake 2.7 continues to display EXECUTABLE_OUTPUT_PATH / LIBRARY_OUTPUT_PATH

2008-07-02 Thread Miguel A. Figueroa-Villanueva
Hello, Since EXECUTABLE_OUTPUT_PATH / LIBRARY_OUTPUT_PATH have been replaced with the CMAKE_RUNTIME_OUTPUT_DIRECTORY / CMAKE_LIBRARY_OUTPUT_DIRECTORY they shouldn't appear in the GUI (CMakeSetup, QtDialog). That gives the impression that they are not deprecated as suggested by the documentation.

Re: [CMake] How to set platform-specific compiler-options from within CMakeFiles

2008-07-02 Thread Philip Lowman
On Fri, Jun 6, 2008 at 9:00 AM, Bill Hoffman [EMAIL PROTECTED] wrote: Martin Apel wrote: Mike Jackson wrote: typically, the PROJECT() statement is the first line of your CMakeLists.txt. Could you explain your project layout a bit more? I found out, that CMAKE_CXX_FLAGS is set to the