Re: [CMake] CMake 2.4 (8) & WxWidgets + RichText Pt 2

2008-04-18 Thread Alan W. Irwin
To see what is going on, check the FindwxWidgets.cmake file. For example, on my Debian testing system with CMake 2.4.8, that file is located at /usr/share/cmake-2.4/Modules/FindwxWidgets.cmake. There is a list of components in that file such as base core adv, etc., but no richtext. So I suggest

[CMake] CMake 2.4 (8) & WxWidgets + RichText Pt 2

2008-04-18 Thread Eric Torstenson
I managed to find the ultimate cause of manual assignment using wx-config and CMAKE_CXX_FLAGS. This is what I was trying to do originally, but never had a successful link. This is directly calling "wx-config" myself, and then attempting to pass the results to the linker call. When I add them

[CMake] CMake 2.4 (8) and WxWidgets + RichText

2008-04-18 Thread Eric Torstenson
Hi All, I've been struggling to get my gui application to compile and link using CMake (the command line version went easily enough) and I think it's time to ask for some help. I'm using version 2.8.6 of wx-widgets, and my old makefiles compiled and linked the application just fine. However,

Re: [CMake] Supporting the Intel Compiler -- buildingstatic libraries

2008-04-18 Thread Bill Hoffman
Blezek, Daniel J., Ph.D. wrote: Bill Hoffman wrote: OK, so that is the file being used. Can you try adding the following to the end of Linux-icpc.cmake and see if it works out of the box for you: FIND_PROGRAM(XIAR xiar) IF(XIAR) SET( CMAKE_AR "${XIAR}") ENDIF(XIAR) MARK_AS_ADVANCED(XIAR)

Re: [CMake] LIST bugs for cmake version 2.6-patch 0 RC-8

2008-04-18 Thread Bill Hoffman
Alan W. Irwin wrote: Is this something new to 2.6, or is it the same as 2.4? I have been concentrating fairly exclusively on issues I have been noticing during my 2.6 tests, but in response to your question I ran the above CMakeLists.txt for 2.4.8, and it turns out 2.4.8 has the same LIST is

Re: [CMake] Some minor issues for 2.6.0-RC-8

2008-04-18 Thread Bill Hoffman
Alan W. Irwin wrote: On 2008-04-18 10:35-0400 Bill Hoffman wrote: Alan W. Irwin wrote: (2) In CMP0003 OLD mode, the -pthread linker option triggers the warning. That is obviously incorrect, and only a list of actual libraries (specified only by -l options?) should trigger the warning. I w

Re: [CMake] adding a Visual Studio 2005 deployment project to a solution

2008-04-18 Thread Bill Hoffman
Steffen Froehlich wrote: Hm, so as of right now, cmake does not support visual studio deployment projects for visual studio 2005? No, it would seem that we do not. Odd the MS would have a completely different format, but there you go... -Bill ___

Re: [CMake] LIST bugs for cmake version 2.6-patch 0 RC-8

2008-04-18 Thread Alan W. Irwin
Here is an improved CMakeLists.txt file which shows all the issues simultaneously without having to re-edit the file. * set(list_example "1;;;2;3;4") message("input list_example = ${list_example}") list(APPEND list_example "5") message("appended list_example = ${list_example}") message(""

Re: [CMake] create same executable under 2 different names

2008-04-18 Thread Crni Gorac
On Fri, Apr 18, 2008 at 7:13 PM, Hendrik Sattler <[EMAIL PROTECTED]> wrote: > Crni Gorac schrieb: > > > Is above possible with CMake? I'd like to employ standard Unix trick > > with my program - to appear under 2 names, and then to inspect argv[0] > > and adjust its behavior accordingly. It's dev

Re: [CMake] Supporting the Intel Compiler -- buildingstatic libraries

2008-04-18 Thread Blezek, Daniel J., Ph.D.
Bill Hoffman wrote: > OK, so that is the file being used. Can you try adding the following > to the end of Linux-icpc.cmake and see if it works out of the box for > you: > > FIND_PROGRAM(XIAR xiar) > IF(XIAR) >SET( CMAKE_AR "${XIAR}") > ENDIF(XIAR) > MARK_AS_ADVANCED(XIAR) No, XIAR was pr

Re: [CMake] create same executable under 2 different names

2008-04-18 Thread Hendrik Sattler
Crni Gorac schrieb: Is above possible with CMake? I'd like to employ standard Unix trick with my program - to appear under 2 names, and then to inspect argv[0] and adjust its behavior accordingly. It's development helper kind of program, thus not installed, so I cannot use symlink-ing for that

Re: [CMake] adding a Visual Studio 2005 deployment project to a solution

2008-04-18 Thread Steffen Froehlich
Hm, so as of right now, cmake does not support visual studio deployment projects for visual studio 2005? -Original Message- From: Bill Hoffman [mailto:[EMAIL PROTECTED] Sent: Friday, April 18, 2008 11:29 AM To: Steffen Froehlich Cc: 'Bill Hoffman'; cmake@cmake.org Subject: Re: [CMake] add

Re: [CMake] Some minor issues for 2.6.0-RC-8

2008-04-18 Thread Alan W. Irwin
On 2008-04-18 10:35-0400 Bill Hoffman wrote: Alan W. Irwin wrote: (2) In CMP0003 OLD mode, the -pthread linker option triggers the warning. That is obviously incorrect, and only a list of actual libraries (specified only by -l options?) should trigger the warning. I will look at the -pthrea

Re: [CMake] LIST bugs for cmake version 2.6-patch 0 RC-8

2008-04-18 Thread Bill Hoffman
Is this something new to 2.6, or is it the same as 2.4? Alan W. Irwin wrote: The LIST command has issues when dealing with a list with some empty elements. To see this try the following CMakeLists.txt set(list_example "1;;;2;3;4") message("list_example = ${list_example}") list(APPEND list_ex

[CMake] create same executable under 2 different names

2008-04-18 Thread Crni Gorac
Is above possible with CMake? I'd like to employ standard Unix trick with my program - to appear under 2 names, and then to inspect argv[0] and adjust its behavior accordingly. It's development helper kind of program, thus not installed, so I cannot use symlink-ing for that purpose. On the other

Re: [CMake] Supporting the Intel Compiler -- building static libraries

2008-04-18 Thread Bill Hoffman
Blezek, Daniel J., Ph.D. wrote: Bill Hoffman wrote: Yes, it would, and it should go in the Platforms directory for the compiler. Is Linux-icpc.cmake the one that gets included for you? $ grep Linux-icpc */* CMakeFiles/Makefile.cmake: "/mi3c/software/share/cmake-2.4/Modules/Platform/Linux-icp

Re: [CMake] adding a Visual Studio 2005 deployment project to a solution

2008-04-18 Thread Bill Hoffman
Steffen Froehlich wrote: No, I am not mixing version of VS. I attached a small hello world program with an installer. This has the same problem. OK, I see, the .vdproj is a totally different file format CMake needs to extract the GUID for the project to use in the .sln file. I am not ev

Re: [CMake] Supporting the Intel Compiler -- building static libraries

2008-04-18 Thread Blezek, Daniel J., Ph.D.
Bill Hoffman wrote: > Yes, it would, and it should go in the Platforms directory for the > compiler. Is Linux-icpc.cmake the one that gets included for you? $ grep Linux-icpc */* CMakeFiles/Makefile.cmake: "/mi3c/software/share/cmake-2.4/Modules/Platform/Linux-icpc.cmake" -dan _

Re: [CMake] CPack/NSIS installation of specific components

2008-04-18 Thread Doug Gregor
On Thu, Apr 17, 2008 at 9:33 PM, Doug Gregor <[EMAIL PROTECTED]> wrote: > Okay, the bug report is here: > > http://public.kitware.com/Bug/view.php?id=6847 > > The archive attached to it contains the patch (*with* the additional > header) and an example with a few components. I also went ahead

Re: [CMake] Problems with Apple OSX Bundles

2008-04-18 Thread David Cole
Brad did some work recently where these properties can be specified as target properties rather than global CMake variables like this. See CVS (or 2.6) cmake --help-properties for this information: MACOSX_BUNDLE Build an executable as an application bundle on Mac OS X. When this p

Re: [CMake] Supporting the Intel Compiler -- building static libraries

2008-04-18 Thread Bill Hoffman
Blezek, Daniel J., Ph.D. wrote: Hi David, Bill, Hmm, I must have made a mistake yesterday, I thought I started with a clean directory. Worked fine this morning. Would be helpful to have the Intel compiler supported out of the box. However, I also found a flag (-ipo_obj) that allows the

Re: [CMake] adding a Visual Studio 2005 deployment project to a solution

2008-04-18 Thread Bill Hoffman
Steffen Froehlich wrote: How would I go about adding a visual studio deployment project to a solution? INCLUDE_EXTERNAL_MSPROJECT does not work. When I run cmake it tells me there is an xml parse error, but still creates the solution. When I open the solution Visual Studio thinks it’s from

Re: [CMake] Some minor issues for 2.6.0-RC-8

2008-04-18 Thread Bill Hoffman
Alan W. Irwin wrote: (1) In FindwxWidgets.cmake, wxWidgets_LIBRARIES is documented as "Path to the wxWidgets libraries". From the above result (before my macro transformed it) this documentation should be changed to something like "List of linker options to use when linking to the wxWidgets lib

Re: [CMake] Supporting the Intel Compiler -- building static libraries

2008-04-18 Thread Blezek, Daniel J., Ph.D.
Hi David, Bill, Hmm, I must have made a mistake yesterday, I thought I started with a clean directory. Worked fine this morning. Would be helpful to have the Intel compiler supported out of the box. However, I also found a flag (-ipo_obj) that allows the Intel Compiler to play nice with a

[CMake] adding a Visual Studio 2005 deployment project to a solution

2008-04-18 Thread Steffen Froehlich
How would I go about adding a visual studio deployment project to a solution? INCLUDE_EXTERNAL_MSPROJECT does not work. When I run cmake it tells me there is an xml parse error, but still creates the solution. When I open the solution Visual Studio thinks it’s from an older version and wants me t

Re: [CMake] Supporting the Intel Compiler -- building static libraries

2008-04-18 Thread Bill Hoffman
David Cole wrote: This is one of those things where you have to have the setting right before any possible TRY_COMPILE actions in any CMakeLists files. It's *conceptually* equivalent to changing the compiler. What you tried by using -DCMAKE_AR should work if you start with an empty binary tre

Re: [CMake] Problems with Apple OSX Bundles

2008-04-18 Thread Dieter Oberkofler
I have tried but only the definitions of the last SET(MACOSX_BUNDLE_*) calls are used for both executables. _ From: David Cole [mailto:[EMAIL PROTECTED] Sent: Friday, April 18, 2008 13:35 To: [EMAIL PROTECTED] Cc: CMake@cmake.org Subject: Re: [CMake] Problems with Apple OSX Bundles Y

Re: [CMake] Supporting the Intel Compiler -- building static libraries

2008-04-18 Thread David Cole
This is one of those things where you have to have the setting right before any possible TRY_COMPILE actions in any CMakeLists files. It's *conceptually* equivalent to changing the compiler. What you tried by using -DCMAKE_AR should work if you start with an empty binary tree. (And starting with a

Re: [CMake] Problems with Apple OSX Bundles

2008-04-18 Thread David Cole
You need to do the SET calls *before* the ADD_EXECUTABLE calls. The ADD_EXECUTABLE uses the current value of those variables to configure an Info.plist file for a bundle app... HTH, David On Fri, Apr 18, 2008 at 3:23 AM, Dieter Oberkofler <[EMAIL PROTECTED]> wrote: > I'm using CMake 2.4.4 on th

[CMake] ASM problem with cmake-2.6

2008-04-18 Thread Hendrik Sattler
Hi, there are two small problem with Assembler support in cmake-2.6. Both are easily fixable: 1. in Modules/CMakeDetermineASMCompiler.cmake, an IF statement does not match its endif statement (line 33): IF(NOT _CMAKE_USER_ASM_COMPILER_PATH) should be IF(NOT _CMAKE_USER_ASM${ASM_DIALECT

Re: [CMake] CMake/CPack/NSIS

2008-04-18 Thread Alin M Elena
Here is the attach Alin "...if the universities will not study useless subjects, who will?" G. F. Fitzgerald, Nature, 45/46, 392 (1892)

[CMake] CMake/CPack/NSIS

2008-04-18 Thread Alin M Elena
Hi, I try to package a project with CMake/CPack/NSIS I have to "aesthetic" problems with it 1. The icon for the binary does not get set. 2. The shortcut on the desktop does not get created. In the attach is the CMakeLists.txt that I use. Any Ideas? Alin

[CMake] How to tell CMake to use --start-group and --end-group during linking?

2008-04-18 Thread Martin Apel
Hi, I am currently trying to convert a big project containing Fortran and C sources to use CMake. There are lots of circular dependencies between libraries, so I either have to specify libraries on the link line multiple times or use the linker options --start-group and --end-group for ld on L

[CMake] Problems with Apple OSX Bundles

2008-04-18 Thread Dieter Oberkofler
I'm using CMake 2.4.4 on the Apple OSX platform and have problems in getting CMake to generate correct bundles when specifying more then one target executable. In principle my CMakeLists.txt file looks as follows: ... ADD_EXECUTABLE(LJS_001, MACOSX_BUNDLE ...) SET(MACOSX_BUNDLE_BUNDLE_NAME LJSAppl