Re: [CMake] (cmake2.8) FindOpenSSl and win32/MinGW

2009-11-18 Thread Mathieu Malaterre
On Tue, Nov 17, 2009 at 6:54 PM, ctrlaltca wrote: > Mathieu Malaterre wrote: >> >> On Tue, Nov 17, 2009 at 5:10 PM, ctrlaltca wrote: >>> >>> I've tried to move a project (www.kvirc.net) from from cmake 2.6.4 to 2.8 >>> and i'm having a issue with FindOpenSSL. My os is winXP and my >>> compilation

Re: [CMake] Problems with 2.8.0 and VS 10 generator: CMAKE_CFG_INTDIR, UNC paths, and QT_LIBRARIES

2009-11-18 Thread Brad King
Ben Medina wrote: 1. CMAKE_CFG_INTDIR is set to $(ConfigurationName), a macro which no longer exists in VS 2010. [snip] 2. The VS10 generator seems to no longer replace forward slashes with back slashes in file paths, which breaks UNC paths in the project [snip] 3. find_package (Qt4 REQUIRED)

[CMake] Excluding source files for certain build types

2009-11-18 Thread Johannes Brunen
Hello, I have a project which builds an executable. I'm using the Visual Studio 9 2008 generator. Now, I need to include some object files to the release configuration only. These objects are not build by myself but readily compiled by some third party tool. Before using CMake I did add these obje

Re: [CMake] Fortran project problem (static linking)

2009-11-18 Thread Michael Wild
Yep, that certainly is an error. Glad it works now. Perhaps you should consider upgrading to CMake 2.8. Fortran support was much improved lately... Michael On 18. Nov, 2009, at 15:09 , 董理 wrote: Hi Michael, I am using cmake 2.6. It worked by following your previous pattern. I can't re

Re: [CMake] Fortran project problem (static linking)

2009-11-18 Thread 董理
Hi Michael, I am using cmake 2.6. It worked by following your previous pattern. I can't remember where is wrong exactly. Maybe I shouldn't write "target_link_libraries(core libutil.a)" but "target_link_libraries(core util )". Thanks again! DONG Li 2009/11/18 Michael Wild > > On 18. Nov, 2009,

[CMake] Working directory issue with CMake 2.8.0

2009-11-18 Thread Yannick Mortier
Hello! We just tried out CMake 2.8.0 today and we found that our old CMake build scripts don't work anymore. One particular error was related to the handling of the current working directory of the function get_filename_component(FULLPATH ${SUBDIRECTORY} REALPATH) I used this function in a small

[CMake] question about COMPILE_DEFINITIONS_RELEASE

2009-11-18 Thread Kenneth Riddile
I'm using cmake to generate projects for Visual Studio 9.  I've noticed that when I use COMPILE_DEFINITIONS_RELEASE to add a preprocessor directive, it's only added to the "Release" configuration in the Visual Studio project, and not the "MinSizeRel" and "RelWithDebInfo" configurations. How can

Re: [CMake] Working directory issue with CMake 2.8.0

2009-11-18 Thread Brad King
Yannick Mortier wrote: > Hello! > > We just tried out CMake 2.8.0 today and we found that our old CMake > build scripts don't work anymore. > > One particular error was related to the handling of the current working > directory of the function > get_filename_component(FULLPATH ${SUBDIRECTORY} RE

Re: [CMake] question about COMPILE_DEFINITIONS_RELEASE

2009-11-18 Thread Tyler Roscoe
On Wed, Nov 18, 2009 at 07:31:06AM -0800, Kenneth Riddile wrote: > I'm using cmake to generate projects for Visual Studio 9.  I've > noticed that when I use COMPILE_DEFINITIONS_RELEASE to add a > preprocessor directive, it's only added to the "Release" configuration > in the Visual Studio project,

Re: [CMake] question about COMPILE_DEFINITIONS_RELEASE

2009-11-18 Thread Kenneth Riddile
Thanks, that works.  My first guess at how it should work was COMPILE_DEFINITIONS_OPTIMIZED. --- On Wed, 11/18/09, Tyler Roscoe wrote: From: Tyler Roscoe Subject: Re: [CMake] question about COMPILE_DEFINITIONS_RELEASE To: "Kenneth Riddile" Cc: cmake@cmake.org Date: Wednesday, November 18, 2009

Re: [CMake] question about COMPILE_DEFINITIONS_RELEASE

2009-11-18 Thread Tyler Roscoe
On Wed, Nov 18, 2009 at 08:40:45AM -0800, Kenneth Riddile wrote: > My first guess at how it should work > was COMPILE_DEFINITIONS_OPTIMIZED. Actually this might be a nice feature. Has anyone considered this (or put it in the bug tracker) before? tyler _

[CMake] Double Substitution in IF Statement

2009-11-18 Thread Aaron_Wright
I have a little question about how to prevent double substitution in an IF statement. Consider this macro that looks through a list for a string, and sets a variable to TRUE if it is found. The problem I have is that the IF statement substitutes ${VALUE2} with LIB, and then substitutes LIB with

[CMake] FindQt4.cmake w7

2009-11-18 Thread Leon Moctezuma
Hi I just installed Windows 7, Qt 4.5.3 and CMake 2.8.0, I added C:\Qt\4.5.3\qmake to the Path, it finds qmake without problemas, but I get the following error: CMake Error at C:/Program Files/CMake 2.8/share/cmake-2.8/Modules/FindQt4.cmake:673 (MESSAGE): Could NOT find QtCore header What is goin

[CMake] breaking overly long lines without creating a list?

2009-11-18 Thread Daniel Franke
Hi all, I'd like to break overly long lines in CMakeLists.txt into something more readable. But breaking a string into two as shown below generates a list, which -- in this case -- breaks the compilation. -- 8< -- if (${CMAKE_Fortran_COMPILER_ID} STREQUAL "GNU") set (CMAKE_Fortran_FLAGS

[CMake] Intel C++ support for Visual Studio Generator

2009-11-18 Thread Hai Nguyen
I know this gets asked every now and then - I just wanted to get an update on where it's at...is there anyone working on adding a generator for the Intel compiler when using Visual Studio? Slightly annoyed by having to right click and change my project every time I regenerate last night, I started

Re: [CMake] FindQt4.cmake w7

2009-11-18 Thread Alan W. Irwin
On 2009-11-18 13:21-0600 Leon Moctezuma wrote: Hi I just installed Windows 7, Qt 4.5.3 and CMake 2.8.0, I added C:\Qt\4.5.3\qmake to the Path ... If qmake exists in the above location then the path should be C:\Qt\4.5.3 (i.e., without the qmake). I am pretty sure that is what you meant, but I

[CMake] HP NonStop porting issues?

2009-11-18 Thread Eric M. LaFranchi
Unable to find a cmake port for the HP-NonStop platform, I am working though the details of porting using cmake-2.8.0 source. A few issues, so far: 1. After the initial part of the bootstrap process, I changed CMakeCache.txt to use the system curl (CMAKE_USE_SYSTEM_CURL:BOOL=ON). The socket l

Re: [CMake] Bug in IMPLICIT_DEPENDS for add_custom_target

2009-11-18 Thread lists_ravi
> In the following example, > the 'drop' target depends on dummy.cc which has an implicit dependency > on blah.h, which means that 'drop' should be rebuilt after every change > to blah.h. However, with CMake 2.6.4 (rpm from Fedora 11) and 2.8.0-rc6 > (self-compiled), the 'drop' target is never rema

Re: [CMake] functions as first class objects

2009-11-18 Thread Alexander Neundorf
On Wednesday 18 November 2009, David Manura wrote: > On Fri, Nov 13, 2009 at 3:58 AM, Michael Wild wrote: > > Something like this just came up recently: > > http://www.cmake.org/pipermail/cmake/2009-October/032725.html > > That would be better than nothing, though it does have a limitation in > tha

Re: [CMake] FindQt4.cmake w7

2009-11-18 Thread Andreas Pakulat
On 18.11.09 13:21:03, Leon Moctezuma wrote: > Hi I just installed Windows 7, Qt 4.5.3 and CMake 2.8.0, > I added C:\Qt\4.5.3\qmake to the Path, it finds qmake > without problemas, but I get the following error: > > CMake Error at C:/Program Files/CMake > 2.8/share/cmake-2.8/Modules/FindQt4.cmake:6

[CMake] FindMatlab broken

2009-11-18 Thread Celil Rufat
Does anybody have an updated version for the FindMatlab module? The current module is unable to find matlab on either Windows 7 or Snow Leopard. I have the latest version of Matlab (R2009b) installed in the standard locations on both machines. Thanks, Celil ___

[CMake] CMAKE_GENERATOR question

2009-11-18 Thread Steven Wilson
Why, in CMake 2.8.0, is the value of CMAKE_GENERATOR "Unix Makefiles" when using the "Eclipse CDT4 - Unix Makefiles" generator? Thanks, Steve ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/

Re: [CMake] How to include Boost in Visual Studio cmake project

2009-11-18 Thread troy d. straszheim
Michael Jackson wrote: Just to follow up a bit more, here is my recipe for getting Boost up and running with CMake and Visual Studio. Another option is to build boost with Boost.CMake, today's 1.41.0 release is here: http://sodium.resophonic.com/boost-cmake/1.41.0.cmake0/ Docs on buildi

Re: [CMake] functions as first class objects

2009-11-18 Thread David Manura
On Wed, Nov 18, 2009 at 4:58 PM, Alexander Neundorf wrote: > On Wednesday 18 November 2009, David Manura wrote: >> That would be better than nothing, though it does have a limitation in >> that you cannot wrap a function more than once. > Not sure. Have you tried ? function(test) message("1") en

Re: [CMake] HP NonStop porting issues?

2009-11-18 Thread Bill Hoffman
Eric M. LaFranchi wrote: Unable to find a cmake port for the HP-NonStop platform, I am working though the details of porting using cmake-2.8.0 source. What is HP-NonStop? A few issues, so far: 1. After the initial part of the bootstrap process, I changed CMakeCache.txt to use the system

Re: [CMake] HP NonStop porting issues?

2009-11-18 Thread Lucas Thode
On Wed, Nov 18, 2009 at 8:40 PM, Bill Hoffman wrote: > Eric M. LaFranchi wrote: > >> >> Unable to find a cmake port for the HP-NonStop platform, I am working >> though the details of porting using cmake-2.8.0 source. >> >> What is HP-NonStop? Having worked with the platform a bit, I'll give you