Re: [CMake] Patch for FindBoost.cmake

2009-09-09 Thread Joseph Garvin
wrote: On 08.09.09 13:47:56, Joseph Garvin wrote: Without this patch FindBoost.cmake will look for the wrong filenames when linking against a release build of boost. For debug it looks for the correct names, but for release it adds spurious hyphens. It looks like the hyphens used

[CMake] try_compile documentation is confusing

2009-09-09 Thread Joseph Garvin
From the try_compile docs: In this version all files in bindir/CMakeFiles/CMakeTmp, will be cleaned automatically, for debugging a --debug-trycompile can be passed to cmake to avoid the clean. Some extra flags that can be included are, INCLUDE_DIRECTORIES, LINK_DIRECTORIES, and LINK_LIBRARIES.

[CMake] Patch for FindBoost.cmake

2009-09-08 Thread Joseph Garvin
Without this patch FindBoost.cmake will look for the wrong filenames when linking against a release build of boost. For debug it looks for the correct names, but for release it adds spurious hyphens. It looks like the hyphens used to be necessary, then the code changed and someone changed debug to

[CMake] Can cmake do configure tests?

2009-08-05 Thread Joseph Garvin
One of the cool features of autotools is configure tests -- actually invoking the compiler on a small sample program and seeing if it's successful. Does CMake do this or do you have to depend on #ifdef SOME_PLATFORM blocks to enable/disable features? ___

[CMake] Can't get cmake to do debug build with wxwidgets

2007-11-30 Thread Joseph Garvin
Under windows, everything works fine. However, trying to build my project on Linux, I think that cmake isn't properly setting up linking against the debug versions of the wxwidgets libraries. wxWidgets has a function, wxLogDebug, that prints text in debug mode but does nothing in release mode.

[CMake] Trouble with interdependent libraries

2007-11-27 Thread Joseph Garvin
I'm working with 3 CMakeLists.txt files I didn't write, so I'm trying to figure out the reasoning behind them. -Application A has a CMakeLists.txt file with TARGET_LINK_LIBARIES(LibB, LibC). -LibB and LibC each have their own subfolders and CMakeLists.txt file, and use ADD_LIBRARY to declare

Re: [CMake] Single line crashes cmake

2007-11-11 Thread Joseph Garvin
:/ blitz-[0-9].[0-9]) So I don't think the crash is caused by the MESSAGE() line. On Nov 5, 2007 4:58 PM, Brandon Van Every [EMAIL PROTECTED] wrote: On Nov 5, 2007 4:36 PM, Joseph Garvin [EMAIL PROTECTED] wrote: I'm trying to find all folders matching the pattern blitz-[0-9].[0-9] so it would

[CMake] Single line crashes cmake

2007-11-05 Thread Joseph Garvin
I'm trying to find all folders matching the pattern blitz-[0-9].[0-9] so it would match blitz-0.3, blitz-2.4, etc. within the folders C:\ and C:\Program Files. Starting to code this I put this in an otherwise empty .cmake file: FILE(GLOB BLITZ_TMP C:/ blitz-[0-9].[0-9]) MESSAGE(${BLITZ_TMP})

[CMake] find folder matching regex?

2007-10-21 Thread Joseph Garvin
I'm trying to write a FindBlitz.cmake file for the popular Blitz++ library ( http://www.oonumerics.org/blitz/). On windows, the folder containing blitz is usually of the form C:/blitz-x.x (where x.x is a version number). I would like to say, Look for blitz/blitz.h in any folder matching