Re: [CMake] CMake 2.8.6-rc4 ready for testing!

2011-09-22 Thread Alan W. Irwin
On 2011-09-22 16:14-0400 David Cole wrote: Please try this version of CMake on your projects and report any issues to the list or the bug tracker. Happy building! Hi Dave: I have done fairly exhaustive tests of the PLplot build and test system using CMake-2.8.6-rc4, and unlike rc3 all seems

Re: [CMake] Scope of find_package inside a function block

2011-09-22 Thread Michael Wild
On Thu 22 Sep 2011 11:17:14 PM CEST, Lori Pritchett-Sheats wrote: > I was wondering what the scope of the variables set in a FindXXX.cmake > file is and does find_package_handle_standard_args change that scope. > > For example, I create a FindBar.cmake file that sets Bar_INCLUDE_DIR, > Bar_LIBRARY,

Re: [CMake] using matlab mex compiler with cmake on windows

2011-09-22 Thread David Cole
You can't set CC and CXX and use them with the Visual Studio generators. Try using a makefile generator instead... HTH, David On Thursday, September 22, 2011, Jaka Katrašnik wrote: > Hi, > > I'm having trouble using cmake to compile a matlab mex file. When I try to to use cmake with the CC CXX

Re: [CMake] CMake 2.8.6-rc4 ready for testing!

2011-09-22 Thread David Cole
Sorry, but no, not for 2.8.6. From now on we will only consider fixes for regressions, and we hope to finalize 2.8.6 by end of next week. On the other hand, you can override all the settings in CTestConfig already, if you set the variables at the right point in a ctest -S script (typically after t

[CMake] using matlab mex compiler with cmake on windows

2011-09-22 Thread Jaka Katrašnik
Hi, I'm having trouble using cmake to compile a matlab mex file. When I try to to use cmake with the CC CXX environment variables set to mex I get the following error E:\Jaka_docs\cmake tutorial\step1>cmake . -- Building for: Visual Studio 10 CMake Error at C:/Program Files (x86)/CMake 2.8/share/

Re: [CMake] CMake 2.8.6-rc4 ready for testing!

2011-09-22 Thread Jean-Christophe Fillion-Robin
Hi Dave, Would it be possible to include the following topic in the release: https://github.com/jcfr/CMake/tree/check-ctestconfig-in-builddir The change is documented and tests have been added: Expect CTestConfig.cmake in either the build or source directory

Re: [CMake] CMake 2.8.6 RC3 FindBoost Regression Error

2011-09-22 Thread Todd Gamblin
David, Sounds good. I'll fix this at some point and push it to next for after 2.8.6. Philip: if you have any other suggestions let me know; I'll try to put those in too. -Todd On Sep 22, 2011, at 1:17 PM, David Cole wrote: > Todd, > > Unless somebody other than Mike speaks up that there's

Re: [CMake] CMake 2.8.6 RC3 FindBoost Regression Error

2011-09-22 Thread Todd Gamblin
That was introduced in this version, and it disables the recursive call to find_package with NO_MODULE. Given the symptoms you are describing, it *sounds* like you might've renamed the lib/boost-1.44.0 directory that boost-cmake installs to something more compatible with a standard boost instal

[CMake] Scope of find_package inside a function block

2011-09-22 Thread Lori Pritchett-Sheats
I was wondering what the scope of the variables set in a FindXXX.cmake file is and does find_package_handle_standard_args change that scope. For example, I create a FindBar.cmake file that sets Bar_INCLUDE_DIR, Bar_LIBRARY, Bar_INCLUDE_DIRS and Bar_LIBRARIES, and calls find_package_handle_stan

Re: [CMake] dmg CPack Options

2011-09-22 Thread Eric Noulard
2011/9/22 Michael Jackson : > I just found that and have been playing with it but if I set it to 1 then I > get the following error: > > CPack: Create package using DragNDrop > CPack: Install projects > CPack: - Run preinstall target for: DREAM3D > CPack: - Install project: DREAM3D > CPack: -   In

Re: [CMake] Post Packaging Script?

2011-09-22 Thread Eric Noulard
2011/9/22 Michael Jackson : > Is there some way to run a shell script/command/cmake script AFTER all the > packaging is completed? None that I am aware of. May be you can craft you own package_end_cleanup custom_command which would call 1) make package 2) cmake -E remove_directory _CPack_Packag

Re: [CMake] Setting IMPORTED_LOCATION_* for existing packages

2011-09-22 Thread Michael Hertling
On 09/22/2011 09:21 PM, Hauke Heibel wrote: > Hi Michael, > > First, thank you for the feedback. > > On Thu, Sep 22, 2011 at 7:19 PM, Michael Hertling wrote: >> AFAICS, you've a single imported target GTest, and you are continuously >> setting *this* target's location - sometimes for a debug con

Re: [CMake] CMake 2.8.6 RC3 FindBoost Regression Error

2011-09-22 Thread David Cole
Todd, Unless somebody other than Mike speaks up that there's a regression, we won't take any more changes for the final CMake 2.8.6. >From right now on (I just sent the -rc4 email out...) we will only accept fixes for MAJOR regressions that people notice between now and next week. I am targeting

[CMake] CMake 2.8.6-rc4 ready for testing!

2011-09-22 Thread David Cole
The CMake 2.8.6 release candidate stream continues! You can find the source and binaries here: http://www.cmake.org/files/v2.8/?C=M;O=D This email is also available on the Kitware blog at http://www.kitware.com/blog/home/post/170 This is the last rc before the final release, unless somebody

Re: [CMake] CMake 2.8.6 RC3 FindBoost Regression Error

2011-09-22 Thread Michael Jackson
So was (Boost_NO_BOOST_CMAKE 1) introduced in this version of CMake or Past versions? I will tell you up front that I am only using a subset of Boost that I create with "bcp" from boost itself so there could very well be something slightly "off" with what I have that has been able to get through

Re: [CMake] CMake 2.8.6 RC3 FindBoost Regression Error

2011-09-22 Thread Todd Gamblin
David, I just tried 2.8.6-rc3 on a Linux machine with a system boost version 1.33.1 and a boost-cmake version 1.47.0. It seems to find both of them fine. It looks like Michael is using boost-cmake version 1.44, so I tried that too, but it also works. I'm not sure what could be wrong here. I

Re: [CMake] Setting IMPORTED_LOCATION_* for existing packages

2011-09-22 Thread Hauke Heibel
Hi Michael, First, thank you for the feedback. On Thu, Sep 22, 2011 at 7:19 PM, Michael Hertling wrote: > AFAICS, you've a single imported target GTest, and you are continuously > setting *this* target's location - sometimes for a debug configuration, > sometimes without configuration - to the l

Re: [CMake] CMake 2.8.6 RC3 FindBoost Regression Error

2011-09-22 Thread David Cole
Philip and Todd have been the recent authors/committers in FindBoost.cmake. Any comments on this one, guys? Thanks, David On Thu, Sep 22, 2011 at 12:23 PM, Michael Jackson wrote: > Semi Answering my own question if I "set (Boost_NO_BOOST_CMAKE 1)" my project > seems to configure ok. >  So I

Re: [CMake] return value of find_library

2011-09-22 Thread David Cole
It should always be a full path for a valid found library. Under what circumstances are you getting exactly "mylib" ... ? On Thu, Sep 22, 2011 at 11:26 AM, Yifei Li wrote: > Hi all, > > Say I have find_library(MYLIB mylib  PATHS …) ,   I don't understand why > MYLIB sometimes is a full path to

Re: [CMake] Visual Studio 2008 configure and build step independency

2011-09-22 Thread Bill Hoffman
On 9/22/2011 1:07 PM, Thomas Wolf wrote: Addition: if i try to fake the contents of the CTK use file, like set_found true usefile_included 1 find_package still tries to include the CTKConfig.cmake. I always thougt if the Find-variable is set to true find_package just assumes that everything we

Re: [CMake] Setting IMPORTED_LOCATION_* for existing packages

2011-09-22 Thread Michael Hertling
On 09/21/2011 09:07 AM, Hauke Heibel wrote: > Hi, > > I started to work with imported targets and thus with setting the > property IMPORTED_LOCATION and the like. I stumbled over a case > (GTest) where the standard find_package call returns me a list of libs > for 'debug' and 'optimized' modes and

Re: [CMake] Visual Studio 2008 configure and build step independency

2011-09-22 Thread Thomas Wolf
Addition: if i try to fake the contents of the CTK use file, like set_found true usefile_included 1 find_package still tries to include the CTKConfig.cmake. I always thougt if the Find-variable is set to true find_package just assumes that everything went fine and continues (silent mode). Or is

Re: [CMake] ExternalProject_Add and Dependent Targets

2011-09-22 Thread David Cole
On Thu, Sep 22, 2011 at 10:13 AM, Lori Pritchett-Sheats wrote: > > > David Cole wrote: >> >> On Wed, Sep 21, 2011 at 11:45 AM, Lori Pritchett-Sheats >> wrote: >> >>> >>> Reading the documentation it is not clear how the DEPENDS option works in >>> ExternalProject_Add. >>> >>> For example, I add H

[CMake] Visual Studio 2008 configure and build step independency

2011-09-22 Thread Thomas Wolf
Hello all, i think i stumbled upon something that keeps me occupied for quite some time now: I have a quite large CMake based project, wich is intended to generate a Visual Studo 2008 solution. The problem is, that I use mixed internal and external projects, which depend on each other, like VTK,

Re: [CMake] CMake 2.8.6 RC3 FindBoost Regression Error

2011-09-22 Thread Michael Jackson
Semi Answering my own question if I "set (Boost_NO_BOOST_CMAKE 1)" my project seems to configure ok. So I guess that is new. ___ Mike Jackson www.bluequartz.net Principal Software Engineer mike.jack...@bluequartz.n

[CMake] CMake 2.8.6 RC3 FindBoost Regression Error

2011-09-22 Thread Michael Jackson
There seems to be either a regression or my project has been slipping through the cracks with respect to FindBoost. I have the following CMake code in my project: # -- Find Boost Headers/Libraries --- SET (Boost_FIND_REQUIRED TRUE) SET (Boost_DEBUG FALSE) set (Boost_

Re: [CMake] dmg CPack Options

2011-09-22 Thread Michael Jackson
Thanks for the heads up. The good news is that the tgz symlink issue is indeed solved so that is a way forward for me. The bad news is that FindBoost seems broken. ___ Mike Jackson www.bluequartz.net Principal Software E

[CMake] How to set own linker?

2011-09-22 Thread Martin Kupke
Hi, I created a toolchain file for cross compiling in my Windows XP environment. To provide cross compiling functionality I set the CMAKE_SYSTEM_NAME to Generic. The toolchain file contains the variables: CMAKE_C_COMPILER set to my own wanted compiler, which is dcc.exe CMAKE_ASM_OCU_COMPILER s

Re: [CMake] linker default library path /usr/local/lib on OSX

2011-09-22 Thread Michael Jackson
Use "install_name_tool" to do that assuming that who ever built the library used the correct linker flags to allow you to do that. If not then you are out of luck. ___ Mike Jackson www.bluequartz.net Principal Software E

Re: [CMake] linker default library path /usr/local/lib on OSX

2011-09-22 Thread amine bezzarga
Any ideas about how to override the "install_name" of /usr/local/lib on that library ? On Wed, Sep 21, 2011 at 1:52 AM, amine bezzarga wrote: > Yes I think I get it, I tried that but it doesn't work either: > install_name_tool -change /usr/local/lib/libirrklang.dylib > ./Dependencies/IrrKLangAud

Re: [CMake] dmg CPack Options

2011-09-22 Thread Johan Björk
You might want to try the latest cmake 2.8.6RC, it should have fixed the symlink issues with .tar.gz packaging. -Johan On Thu, Sep 22, 2011 at 5:35 PM, Michael Jackson < mike.jack...@bluequartz.net> wrote: > I just found that and have been playing with it but if I set it to 1 then I > get the f

[CMake] Post Packaging Script?

2011-09-22 Thread Michael Jackson
Is there some way to run a shell script/command/cmake script AFTER all the packaging is completed? When I run "make package" from the command line everything goes just fine. The issue is that the folder _CPack_Packages is left over which contains a Symlink to /Applications for OS X systems. Ha

[CMake] return value of find_library

2011-09-22 Thread Yifei Li
Hi all, Say I have find_library(MYLIB mylib PATHS …) , I don't understand why MYLIB sometimes is a full path to mylib and sometimes only contains 'mylib'. Thanks Yifei -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.h

Re: [CMake] dmg CPack Options

2011-09-22 Thread Michael Jackson
I just found that and have been playing with it but if I set it to 1 then I get the following error: CPack: Create package using DragNDrop CPack: Install projects CPack: - Run preinstall target for: DREAM3D CPack: - Install project: DREAM3D CPack: - Install component: Applications CPack: - In

Re: [CMake] VS2005: CMAKE_CXX_FLAGS not used when project() is placed after definition

2011-09-22 Thread Michael Hertling
On 09/21/2011 09:26 AM, Jens Auer wrote: >> The PROJECT() command has significant side effects, e.g. for >> C++ projects, it loads Modules/CMakeCXXInformation.cmake containing: >> >> SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS_INIT}" CACHE STRING >> "Flags used by the compiler during all build ty

Re: [CMake] dmg CPack Options

2011-09-22 Thread Clinton Stimpson
On Thursday, September 22, 2011 09:07:49 am Michael Jackson wrote: > Is there an option to pack the entire installation folder _including_ the > folder itself into the dmg disk image during CPack? > > I have several applications, tools, documents and such and they are all > currently put "loose

[CMake] dmg CPack Options

2011-09-22 Thread Michael Jackson
Is there an option to pack the entire installation folder _including_ the folder itself into the dmg disk image during CPack? I have several applications, tools, documents and such and they are all currently put "loose" in the dmg file, I would rather have and enclosing folder. I am using uni

Re: [CMake] ExternalProject_Add and Dependent Targets

2011-09-22 Thread Lori Pritchett-Sheats
David Cole wrote: On Wed, Sep 21, 2011 at 11:45 AM, Lori Pritchett-Sheats wrote: Reading the documentation it is not clear how the DEPENDS option works in ExternalProject_Add. For example, I add HDF5 to my build and HDF5 depends on zlib the following doesn't work find_package(ZLIB) add_l

Re: [CMake] ExternalProject_Add without download of local sources?

2011-09-22 Thread Thomas Wolf
On 15.09.2011 18:30, David Cole wrote: > Luigi is correct: > > To use an existing source directory (just use the source in its place > without any copy operations), simply say: > > DOWNLOAD_COMMAND "" > SOURCE_DIR ${Log4Qt_SOURCE_DIR} > > The default behavior of copying the source tree when

[CMake] Using Bundle Utilities on an OS X Command line Tool

2011-09-22 Thread Michael Jackson
I am trying to figure out how to possibly use BundleUtilities.cmake to fix up a "Unix" type install versus a .app bundle. In my situation I would like the following layout (Simplified) DREAM3D/bin/MyExecutable DREAM3D/lib/libHDF5.dylib DREAM3D/lib/libSupport.dylib When I run BundleUtlities I ge

Re: [CMake] Fwd: Save stripped debugging information

2011-09-22 Thread Rolf Eike Beer
> Il 22/09/2011 10.13, Rolf Eike Beer ha scritto: >>> Yeah, that's exactly what I had in mind. Any chance that we will see >>> this in a future release? >> This is usually "find someone who does it and writes tests for it". >> Which >> then boils down to find someone who has enough knowledge and sp

[CMake] Again on dependencies tree

2011-09-22 Thread Marco Corvo
Hi all, I thought I came up with a solution for this problem, but looks like I'm still not doing the right thing. My project is made of many tens of packages, everyone with its nice CMakeLists.txt. What I'd like to do is to have the freedom to build every single package, or bunches of packag

Re: [CMake] Fwd: Save stripped debugging information

2011-09-22 Thread Andrea Galeazzi
Il 22/09/2011 10.13, Rolf Eike Beer ha scritto: Yeah, that's exactly what I had in mind. Any chance that we will see this in a future release? This is usually "find someone who does it and writes tests for it". Which then boils down to find someone who has enough knowledge and spare time to do o

Re: [CMake] Fwd: Save stripped debugging information

2011-09-22 Thread Rolf Eike Beer
> Yeah, that's exactly what I had in mind. Any chance that we will see > this in a future release? This is usually "find someone who does it and writes tests for it". Which then boils down to find someone who has enough knowledge and spare time to do or someone that needs it and is willing to pay

Re: [CMake] Save stripped debugging information

2011-09-22 Thread Pawel Sikora
On Thursday 22 of September 2011 09:37:36 Rolf Eike Beer wrote: > > Hi, > > > > I'm aware of the option CMAKE_BUILD_TYPE with which I can tell if I > > want to include debugging information or not. > > > > A very useful feature of the program objcopy is, to not strip > > debugging information from

[CMake] Fwd: Save stripped debugging information

2011-09-22 Thread Lukas Anzinger
Yeah, that's exactly what I had in mind. Any chance that we will see this in a future release? Meanwhile I will try to find a clean way to run objdump out of CMake manually. On Thu, Sep 22, 2011 at 09:37, Rolf Eike Beer wrote: > Sadly not. This is also annoying for e.g. MSVC builds where the deb

Re: [CMake] Save stripped debugging information

2011-09-22 Thread Rolf Eike Beer
> Hi, > > I'm aware of the option CMAKE_BUILD_TYPE with which I can tell if I > want to include debugging information or not. > > A very useful feature of the program objcopy is, to not strip > debugging information from a file but to split it from it so that you > can release a program without deb

[CMake] Save stripped debugging information

2011-09-22 Thread Lukas Anzinger
Hi, I'm aware of the option CMAKE_BUILD_TYPE with which I can tell if I want to include debugging information or not. A very useful feature of the program objcopy is, to not strip debugging information from a file but to split it from it so that you can release a program without debugging informa