Re: [CMake] [New Module] FindCUDA

2010-01-06 Thread Luke Parkinson
Hello Everyone, I apologise in advance if this is the wrong way to revive an old topic, but I wasn't sure how to reply to old threads in the mailing list and I'm new to this list. I'm part of a team of developers looking at integrating CUDA into the Insight Toolkit (http://www.itk.org/). Peopl

Re: [CMake] CUDA, CMAKE, and an attempt to build nbody

2010-01-06 Thread Brian Davis
On Tue, Jan 5, 2010 at 12:23 PM, James Bigler wrote: > > >> I ask my self two questions: >> >> 1) Why is CUDA_NVCC_FLAGS not set to some default build setting that would >> just work out of the box? - I get the answer to this question when I turn on >> CUDA_VERBOSE_BUILD_MODE - It is being set un

[CMake] error while stage install of crosscompiled binaries

2010-01-06 Thread Claus Klein
Hi i want to install a cross compiled (build host is a MAC OS X) project to a temporary state dir to get an archive to distribute the binaries. The target is win32 (mingw), compiled to be installed at c:/usr as CMAKE_INSTALL_PREFIX. This prefix is used while compile the binaries, so I can't

Re: [CMake] Visual Studio Release / Debug with different link dependencies?

2010-01-06 Thread Gregory Peele ARA/CFD
Wow, I feel pretty dumb now. Somehow I just didn't notice those options to TARGET_LINK_LIBRARIES despite how many times I've looked at the documentation of that command. Thanks guys! Gregory Peele, Jr. Applied Research Associates, Inc. From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmak

Re: [CMake] Visual Studio Release / Debug with different link dependencies?

2010-01-06 Thread Ryan Pavlik
Gregory, This should "just work" - have you tried it? Inside of the binary directory, you'll note that there are "INTDIR" subdirectories named after the build configs. Ryan On 01/06/2010 03:58 PM, Gregory Peele ARA/CFD wrote: Hi all, While I'm hitting this list today I want to ask a ques

Re: [CMake] Cmake v2.8.0 ported to OS/2 - a question on DLL creation

2010-01-06 Thread Paul Smedley
Hi Bill, On Wed, 6 Jan 2010 17:52:26 UTC, Bill Hoffman wrote: > Bill Hoffman wrote: > > Paul Smedley wrote: > >> Hi All, > >> > >> Whilst it still needs more testing and the diffs definitely need > >> tidying up, I've created an OS/2 port of cmake 2.8.0 - which is > >> available for download

Re: [CMake] Visual Studio Release / Debug with different link dependencies?

2010-01-06 Thread Tyler Roscoe
On Wed, Jan 06, 2010 at 09:58:12PM +, Gregory Peele ARA/CFD wrote: > I would like to be able - in the same binary directory / generated > Solution - to build both Debug and Release builds of my project. Some Look at the debug and optimized flags to target_link_libraries(). tyler

Re: [CMake] Cmake v2.8.0 ported to OS/2 - a question on DLL creation

2010-01-06 Thread Paul Smedley
Hi Bill, On Wed, 6 Jan 2010 17:43:44 UTC, Bill Hoffman wrote: > Paul Smedley wrote: > > Whilst it still needs more testing and the diffs definitely need > > tidying up, I've created an OS/2 port of cmake 2.8.0 - which is > > available for download from my site at http://os2ports.smedley.info

Re: [CMake] using cmake on windows - query on existing targets

2010-01-06 Thread John Drescher
> Thanks, however I was looking to do it in a path independent way. For > example by just using the directory/vcproj name from top build > directory. Please do correct me if I have not understood correctly. > With that method there are no hardcoded paths in the batch files. The paths were generated

Re: [CMake] using cmake on windows - query on existing targets

2010-01-06 Thread Chauhan, Vikas
> -Original Message- > From: Alexander Neundorf [mailto:a.neundorf-w...@gmx.net] > Sent: 06 January 2010 21:24 > To: cmake@cmake.org > Cc: Chauhan, Vikas > Subject: Re: [CMake] using cmake on windows - query on existing targets > > On Wednesday 06 January 2010, Chauhan, Vikas wrote: > > H

Re: [CMake] using cmake on windows - query on existing targets

2010-01-06 Thread Chauhan, Vikas
> -Original Message- > From: John Drescher [mailto:dresche...@gmail.com] > Sent: 06 January 2010 19:57 > To: Chauhan, Vikas; CMake mailing list > Subject: Re: [CMake] using cmake on windows - query on existing targets > > I am going to only answer 1 part of this. > > > For example: I ma

[CMake] Visual Studio Release / Debug with different link dependencies?

2010-01-06 Thread Gregory Peele ARA/CFD
Hi all, While I'm hitting this list today I want to ask a question about dealing with multiple build configurations in Visual Studio with badly behaved third-party libraries. I would like to be able - in the same binary directory / generated Solution - to build both Debug and Release builds of

Re: [CMake] Compiler Test Failing on Windows 7

2010-01-06 Thread Gregory Peele ARA/CFD
Hey all, See next two posts below discussing Admin issues on Vista and 7 that we had meant to put on the list at large. As always, I greatly appreciate the responsiveness and helpfulness of the CMake developers and the people on this list. Gregory Peele, Jr. Applied Research Associates, Inc. F

Re: [CMake] using cmake on windows - query on existing targets

2010-01-06 Thread Alexander Neundorf
On Wednesday 06 January 2010, Chauhan, Vikas wrote: > Hi, > > I am quite new to using cmake and at the moment I am trying to find my > way through it. > I was wondering how we can query different targets on windows when using > cmake. > For example: I may have a set of separate directories(each con

Re: [CMake] [BUG?] Setting environment variables with embedded blanks does not work with VERBATIM

2010-01-06 Thread Alan W. Irwin
On 2010-01-06 12:48-0500 Brad King wrote: VERBATIM COMMAND env DUMMY=${CMAKE_CURRENT_BINARY_DIR} printenv DUMMY ^^^ more portable version of syntax Thanks very much for that suggestion for increasing shell syntax portability. I just didn't have enough cross-shell experience to

Re: [CMake] mingw crosscompile error: invalid option `macosx-version-min=10.5' ?

2010-01-06 Thread Claus Klein
Yes, I did it again and again with rm -rf build. Same result! As I said: "The problem occurs always when I run cmake again, no matter of Windows or Windows-gcc is used." Claus On 06.01.2010, at 20:23, Alexander Neundorf wrote: On Wednesday 06 January 2010, Claus Klein wrote: Hi Alex, The

Re: [CMake] Mediawiki CMake syntax highlighting

2010-01-06 Thread David Doria
On Wed, Jan 6, 2010 at 1:16 PM, David Cole wrote: > It has been put on the Kitware public wikis this morning... (includes the > CMake, VTK, ParaView, ITK wikis) > Please try it out and let us know if you see anything funky about it. > > Thanks, > David Cole > Kitware, Inc. > > On Tue, Jan 5, 2010

[CMake] Fwd: Compiler Test Failing on Windows 7

2010-01-06 Thread John Drescher
On Wed, Jan 6, 2010 at 2:49 PM, Gregory Peele ARA/CFD wrote: > Let's stress that the source and binary directories of this build are > readable and writable to Joe's account.  It is NOT a file permission issue > for any files in our build tree.  If CMake or Visual Studio generate files > outside o

Re: [CMake] CMAKE_EXE_LINKER_FLAGS not a list?

2010-01-06 Thread Gregory Peele ARA/CFD
David, Thanks for the info, I understand how that can happen sometimes. Can this quirk be explicitly mentioned in the help documentation so that people like me aren't caught by surprise? Actually I just noticed that CMAKE_SHARED_LINKER_FLAGS and CMAKE_MODULE_LINKER_FLAGS aren't in the officia

Re: [CMake] using cmake on windows - query on existing targets

2010-01-06 Thread John Drescher
I am going to only answer 1 part of this. > For example: I may have a set of separate directories(each containing a > project) and from the top level root directory, I want to selectively build > a subset of projects. > > How can I do it on the command line ? I do this with a batch file. Each pro

Re: [CMake] Compiler Test Failing on Windows 7

2010-01-06 Thread Gregory Peele ARA/CFD
Let's stress that the source and binary directories of this build are readable and writable to Joe's account. It is NOT a file permission issue for any files in our build tree. If CMake or Visual Studio generate files outside of our source or binary tree all bets are off of course. Given that

[CMake] using cmake on windows - query on existing targets

2010-01-06 Thread Chauhan, Vikas
Hi, I am quite new to using cmake and at the moment I am trying to find my way through it. I was wondering how we can query different targets on windows when using cmake. For example: I may have a set of separate directories(each containing a project) and from the top level root directory, I wa

Re: [CMake] CMAKE_EXE_LINKER_FLAGS not a list?

2010-01-06 Thread David Cole
On Wed, Jan 6, 2010 at 2:18 PM, Gregory Peele ARA/CFD wrote: > Hey all, > > > > When tracking down why some custom linker flags weren't working right, I > realized that CMAKE_EXE_LINKER flags (and its cousins for shared libraries) > are not semicolon delimited lists but rather treat the flags as

Re: [CMake] mingw crosscompile error: invalid option `macosx-version-min=10.5' ?

2010-01-06 Thread Alexander Neundorf
On Wednesday 06 January 2010, Claus Klein wrote: > Hi Alex, > > The problem occurs always when I run cmake again, no matter of Windows > or Windows-gcc is used. > But I found in CMakeCache.txt this UNINITIALIZED values. > > claus-kleins-macbook-pro:build clausklein$ grep UNINITIALIZED > CMakeCache.

[CMake] CMAKE_EXE_LINKER_FLAGS not a list?

2010-01-06 Thread Gregory Peele ARA/CFD
Hey all, When tracking down why some custom linker flags weren't working right, I realized that CMAKE_EXE_LINKER flags (and its cousins for shared libraries) are not semicolon delimited lists but rather treat the flags as a single space-delimited string. I also saw the closed bug report at ht

Re: [CMake] Mediawiki CMake syntax highlighting

2010-01-06 Thread David Cole
It has been put on the Kitware public wikis this morning... (includes the CMake, VTK, ParaView, ITK wikis) Please try it out and let us know if you see anything funky about it. Thanks, David Cole Kitware, Inc. On Tue, Jan 5, 2010 at 11:31 PM, David Doria wrote: > On Mon, Nov 30, 2009 at 8:17

Re: [CMake] Cmake v2.8.0 ported to OS/2 - a question on DLL creation

2010-01-06 Thread Bill Hoffman
Bill Hoffman wrote: Paul Smedley wrote: Hi All, Whilst it still needs more testing and the diffs definitely need tidying up, I've created an OS/2 port of cmake 2.8.0 - which is available for download from my site at http://os2ports.smedley.info The actual diffs + os2.cmake file can be downl

Re: [CMake] [BUG?] Setting environment variables with embedded blanks does not work with VERBATIM

2010-01-06 Thread Brad King
On 1/3/2010 2:44 PM, Alan W. Irwin wrote: The PLplot test system assumes bash (either normal bash or win-bash) is available and uses environment variables specified on the command line. CMake does not assume this. We generate portable shell syntax. To solve this issue, VERBATIM should simply

Re: [CMake] Cmake v2.8.0 ported to OS/2 - a question on DLL creation

2010-01-06 Thread Bill Hoffman
Paul Smedley wrote: Hi All, Whilst it still needs more testing and the diffs definitely need tidying up, I've created an OS/2 port of cmake 2.8.0 - which is available for download from my site at http://os2ports.smedley.info The actual diffs + os2.cmake file can be downloaded from http://sm

Re: [CMake] [BUG?] Setting environment variables with embedded blanks does not work with VERBATIM

2010-01-06 Thread Alan W. Irwin
On 2010-01-03 11:44-0800 Alan W. Irwin wrote: [...] COMMAND DUMMY=${CMAKE_CURRENT_BINARY_DIR} printenv DUMMY This works fine if there are no embedded blanks in CMAKE_CURRENT_BINARY_DIR, and the bash result of the above cmake COMMAND in a custom target is DUMMY=/home/software/plplot_svn/HEAD/bu

Re: [CMake] mingw crosscompile error: invalid option `macosx-version-min=10.5' ?

2010-01-06 Thread Claus Klein
Hi Alex, The problem occurs always when I run cmake again, no matter of Windows or Windows-gcc is used. But I found in CMakeCache.txt this UNINITIALIZED values. claus-kleins-macbook-pro:build clausklein$ grep UNINITIALIZED CMakeCache.txt CMAKE_CROSSCOMPILING:UNINITIALIZED=1 CMAKE_SYSTEM_NA

Re: [CMake] Compiler Test Failing on Windows 7

2010-01-06 Thread David Cole
So it actually *was* a permissions issue after all... On Wed, Jan 6, 2010 at 8:56 AM, Joe L wrote: > Trying to open the solution file (trycompile generated) didn't work by > double clicking on it, so I searched about that and found this: > > http://www.pluralsight.com/community/blogs/matt/archi

Re: [CMake] fftw-3.2.2 linking porblems to CMake 2.6

2010-01-06 Thread Ryan Pavlik
You should be able to do something like: find_library(FFTW_LIBRARY NAMES fftw3 fftw) set(FFTW_LIBRARIES "${FFTW_LIBRARY}") if(UNIX AND NOT WIN32) find_library(FFTW_libm_LIBRARY NAMES m) list(APPEND FFTW_LIBRARIES "${FFTW_libm_LIBRARY}") endif() target_link_libraries(yourtarge

Re: [CMake] Compiler Test Failing on Windows 7

2010-01-06 Thread Joe L
Trying to open the solution file (trycompile generated) didn't work by double clicking on it, so I searched about that and found this: http://www.pluralsight.com/community/blogs/matt/archive/2007/05/21/47446.aspx this comment is the one that solved that for me: "It works when you set both Launch

[CMake] fftw-3.2.2 linking porblems to CMake 2.6

2010-01-06 Thread Lucian Goron
hello, I use the ubuntu 9.04 jaunty jackalope along with other open source C++ libraries. Recently I discovered the* fftw-3.2.2* libraries, but trying linking it is harder then I thought. Basically, I have to link these libraries *-lfftw3 -lm *but I do not know how ? Has somebody encountered this

[CMake] Cmake v2.8.0 ported to OS/2 - a question on DLL creation

2010-01-06 Thread Paul Smedley
Hi All, Whilst it still needs more testing and the diffs definitely need tidying up, I've created an OS/2 port of cmake 2.8.0 - which is available for download from my site at http://os2ports.smedley.info The actual diffs + os2.cmake file can be downloaded from http://smedley.info/cmake-2.8.0-