Re: [CMake] Finding WS2 library on Windows Vista

2010-07-02 Thread Clinton Stimpson
On Friday, July 02, 2010 11:56:02 am Di Zou wrote: > I am trying to use CMake to find WS2_32.dll on Windows Vista. For me, the > dll is located in C:/Program Files/Microsoft SDKs/Windows/v6.0A/Lib. So I > use the command: FIND_LIBRARY(WS2 NAMES WS2_32 PATHS "C:/Program > Files/Microsoft SDKs/Window

Re: [CMake] [PATCH] bootstrap: Detect known C/C++ compiler toolchains

2010-07-02 Thread Todd Gamblin
Brad, Sorry for the slow response. This patch works on dawndev (BG/P FEN) at LLNL. I tested it with cmake 2.8.2, and just did bootstrap --prefix=/path/to/install. Everything went fine. -Todd On Jun 30, 2010, at 7:58 AM, Brad King wrote: > Look for a C/C++ compiler pair from known toolcha

[CMake] Files in source_group

2010-07-02 Thread Ilpo Ilves
Hi, Is it possible to retrieve a list of those files which I have mentioned in multiple source_group commands? Since I will group my sources anyway, it would seem redundant to have to list those files again to give them to the add_library command.

Re: [CMake] option bug ?

2010-07-02 Thread Chris Hillery
There's a slightly nicer work-around: Change project A's CMakeLists to set PROJB_OPENCV_LINK as a cache variable, ie, SET(PROJB_OPENCV_LINK NO CACHE BOOLEAN "doc"). I've tested it locally and it works the way you want it to. It seems that CMake divides the world of variables into two classes: cach

[CMake] option bug ?

2010-07-02 Thread Gaspard Bucher
I have two projects: A and B. A depends on B but should set some settings for the proper compilation of B when included in A. CMakeLists.txt (project A) set(PROJB_OPENCV_LINK NO) add_subdirectory(vendor/projb) vendor/projb/CMakeLists.txt === (project B) option (PROJB_OPENCV_LINK

[CMake] How to tell cmake to use libs under Frameworks instead of macports and how to produce valid xcode project file, on Mac OS X Snow Leopard.

2010-07-02 Thread Sergio Lopes
Hi everyone, sorry the long subject. I'm trying to test some compilation options and would like to force cmake to use the libraries under /Library/Frameworks instead of those it finds on macports' lib folder. Specifically, I would like to use the SDL installation I have under the Frameworks folder

[CMake] find_path() and non-standard paths

2010-07-02 Thread Clinton Stimpson
I have this FIND_PATH(QT_MKSPECS_DIR NAMES qconfig.pri PATH_SUFFIXES mkspecs) And a Qt installation /bin /mkspecs /include /lib and this file exists /mkspecs/qconfig.pri. And if I set CMAKE_PREFIX_PATH= for a native build or CMAKE_FIND_ROOT_PATH= for cross-compiling, it doesn't g

Re: [CMake] Finding WS2 library on Windows Vista

2010-07-02 Thread Hendrik Sattler
Am Freitag 02 Juli 2010, 19:56:02 schrieb Di Zou: > I am trying to use CMake to find WS2_32.dll on Windows Vista. For me, the > dll is located in C:/Program Files/Microsoft SDKs/Windows/v6.0A/Lib. So I > use the command: FIND_LIBRARY(WS2 NAMES WS2_32 PATHS "C:/Program > Files/Microsoft SDKs/Windows

[CMake] Finding WS2 library on Windows Vista

2010-07-02 Thread Di Zou
I am trying to use CMake to find WS2_32.dll on Windows Vista. For me, the dll is located in C:/Program Files/Microsoft SDKs/Windows/v6.0A/Lib. So I use the command: FIND_LIBRARY(WS2 NAMES WS2_32 PATHS "C:/Program Files/Microsoft SDKs/Windows/*" "C:/Program Files/Microsoft SDKs/Windows/*/*") Thi

Re: [CMake] Different configurations with Visual Studio

2010-07-02 Thread aaron.meadows
I don't believe this is possible. There was actually a discussion about this, simultaneous to your question, regarding x86 and x64 builds in the same solution files. The answer given was that it is not possible, and it is better to have an x86 build tree and an x64 build tree. There was a link g

Re: [CMake] FindFoobar with non-root installation

2010-07-02 Thread Michael Hertling
On 07/02/2010 02:55 PM, Diablo 666 wrote: > > Hi, > > the last problem for today :) > > Assuming I develop a project called Foobar, which consists of some libraries > only. To make using these libraries easier, I'd like to create a > FindFoobar.cmake file to use with FIND_PACKAGE(). You shoul

Re: [CMake] FindFoobar with non-root installation

2010-07-02 Thread Andreas Pakulat
On 02.07.10 14:55:07, Diablo 666 wrote: > the last problem for today :) > > Assuming I develop a project called Foobar, which consists of some libraries > only. To make using these libraries easier, I'd like to create a > FindFoobar.cmake file to use with FIND_PACKAGE(). > > The problem is that

Re: [CMake] cross compiling - platform files

2010-07-02 Thread Kishore
On Thursday 01 Jul 2010 8:13:56 pm Kishore wrote: > In the CMake wiki (http://www.cmake.org/Wiki/CMake_Cross_Compiling) it says > clearly that the platform module are included in the following order; > > Platform/${CMAKE_SYSTEM_NAME}.cmake (mandatory) > Platform/${CMAKE_SYSTEM_NAME}-.cmake (option

Re: [CMake] No FortranCInterface mangling known with (VCExpress & Intel Ifort 2008)

2010-07-02 Thread Brad King
Cyril, Andrew, On 6/9/2010 4:00 AM, Giraudon Cyril wrote: > I use Visual Studio Express 9 2008 and ifort 11.1 under Windows XP. > > When I try to generate the fortran binding of a project a "No > FortranCInterface mangling known for mysub" message (reported hereafter) > is printed. > > It seems CM

Re: [CMake] FindFoobar with non-root installation

2010-07-02 Thread Rolf Eike Beer
Am Friday 02 July 2010 schrieb Diablo 666: > Hi, > > the last problem for today :) > > Assuming I develop a project called Foobar, which consists of some > libraries only. To make using these libraries easier, I'd like to create a > FindFoobar.cmake file to use with FIND_PACKAGE(). > > The probl

[CMake] FindFoobar with non-root installation

2010-07-02 Thread Diablo 666
Hi, the last problem for today :) Assuming I develop a project called Foobar, which consists of some libraries only. To make using these libraries easier, I'd like to create a FindFoobar.cmake file to use with FIND_PACKAGE(). The problem is that I have a lot of clients which can't install the

Re: [CMake] Relative paths in debug info

2010-07-02 Thread Mathias Lafeldt
Michael Wild wrote: > On 2. Jul, 2010, at 9:46 , Mathias Lafeldt wrote: > >> Hello, >> >> is it possible to tell CMake to write relative source file paths in the >> debug information of an object file (aka .mdebug section)? >> >> Here's a sample object file: >> >> $ strings -a build/CMakeFiles/con

Re: [CMake] Howto unset cache variable without UNSET()

2010-07-02 Thread Marcel Loose
Hi Tyler, That's because I would like to use FOO as a sort of tribool variable. Besides TRUE and FALSE, I'd like to know whether FOO was defined at all. If not that qualifies and neither TRUE nor FALSE. 'IF(FOO)' will return FALSE, either when FOO is FALSE or when FOO is not DEFINED. Therefore, I

Re: [CMake] Relative paths in debug info

2010-07-02 Thread Michael Wild
On 2. Jul, 2010, at 9:46 , Mathias Lafeldt wrote: > Hello, > > is it possible to tell CMake to write relative source file paths in the > debug information of an object file (aka .mdebug section)? > > Here's a sample object file: > > $ strings -a build/CMakeFiles/config.dir/src/strbuf.c.o | gre

Re: [CMake] Preserve tree structur for IDEs

2010-07-02 Thread Bo Thorsen
Den 02-07-2010 10:36, Diablo 666 skrev: Hi, > Date: Thu, 1 Jul 2010 15:03:13 +0200 > Subject: Re: [CMake] Preserve tree structur for IDEs > From: eric.noul...@gmail.com > To: thediablo...@hotmail.de > CC: cmake@cmake.org > > > For "grouping" source in Visual Studio you may use > > sour

Re: [CMake] CPack custom page

2010-07-02 Thread Bo Thorsen
Den 28-06-2010 10:42, Bo Thorsen skrev: Hi people, I'm trying to build a custom NSIS page that's shown at the end of the installer, after all files have been installed. The purpose is to set up a Windows service. I can do the code for installing the service, but I'm having some problems adding

Re: [CMake] Preserve tree structur for IDEs

2010-07-02 Thread Diablo 666
Hi, > Date: Thu, 1 Jul 2010 15:03:13 +0200 > Subject: Re: [CMake] Preserve tree structur for IDEs > From: eric.noul...@gmail.com > To: thediablo...@hotmail.de > CC: cmake@cmake.org > > > For "grouping" source in Visual Studio you may use > > source_group(name [REGULAR_EXPRESSION regex] [FILES

[CMake] Relative paths in debug info

2010-07-02 Thread Mathias Lafeldt
Hello, is it possible to tell CMake to write relative source file paths in the debug information of an object file (aka .mdebug section)? Here's a sample object file: $ strings -a build/CMakeFiles/config.dir/src/strbuf.c.o | grep home /home/foo/bar/src/strbuf.c Instead of the absolute file path