[CMake] unit test issue

2010-02-18 Thread Surya Kiran Gullapalli
Hello all, I'm facing a problem where in I build a shared library and and a unit-test executable (which is in a sub directory) I want to execute this test as a POST_BUILD operation for the shared library. So I gave Add_Custom_Command (TARGET ShLibName POST_BUILD COMMAND unit_test_exe) CMake throw

Re: [CMake] Overwriting variables in cache.

2010-02-18 Thread Philip Lowman
You can use the CACHE & FORCE options to the set() command. This will overwrite the variable every time you configure regardless of what the user enters, however. On Thu, Feb 18, 2010 at 10:40 AM, Benoit Thomas wrote: > Hi, > > I am trying to overwrite some variables in the cache (without editin

[CMake] multiple targets with same name

2010-02-18 Thread Surya Kiran Gullapalli
Hello all, I've this directory structure ParentDir |- Module 1 |- unit_test |- Module 2 |- unit_test |- Module 3 |- unit_test |- Module 4 |- unit_test Each module has a unit_test d

[CMake] CMake 2.8.1 RC 3 is ready to try

2010-02-18 Thread Samuel E. Henley
I have a new warning "warning: -fPIC ignored for target (all code is position independent)" Under Windows - Mingw CMAKE_SHARED_LIBRARY_C_FLAGS and CMAKE_SHARED_LIBRARY_CXX_FLAGS has to be cleared of -fPIC, -fIPC is not used with gcc in Windows. Samuel E. Henley OSRail.net _

Re: [CMake] CMake 2.8.1 RC 3 is ready to try

2010-02-18 Thread Alan W. Irwin
On 2010-02-18 08:52-0800 Alan W. Irwin wrote: [The information about CMAKE_MODULE_PATH being a list] is going to help a lot in the language support transition between 2.6.x and 2.8.x. To Arjen, Brad, and Bill: Setting up CMAKE_MODULE_PATH as a list whose contents depended on CMake version mea

Re: [CMake] Windows Version in HEX

2010-02-18 Thread Michael Wild
On 18. Feb, 2010, at 23:34 , aaron_wri...@selinc.com wrote: > I have a boost::asio library that wants _WIN32_WINNT or _WIN32_WINDOWS > defined to the hex version of windows, like 0x0501 for windows xp. I can > get 5.1 from CMAKE_SYSTEM_VERSION, but is there a hex version, or do I > have to do

[CMake] Windows Version in HEX

2010-02-18 Thread Aaron_Wright
I have a boost::asio library that wants _WIN32_WINNT or _WIN32_WINDOWS defined to the hex version of windows, like 0x0501 for windows xp. I can get 5.1 from CMAKE_SYSTEM_VERSION, but is there a hex version, or do I have to do some converting myself? -

[CMake] ITK build failure for java wrapping on OSX (10.6.x)

2010-02-18 Thread Darren Weber
In MacPorts, we've noticed a persistent failure in building the java wrapping for InsightToolkit on OSX 10.6.x. This failure has occurred on a reliable basis across a number of systems running OSX 10.6.x This is a trac ticket describing the problem (see esp. the last few posts from me): http://t

Re: [CMake] Is this possible ?

2010-02-18 Thread Benoit Thomas
This is perfect, Thank you ! On 2010-02-18 17:15, Tyler Roscoe wrote: On Thu, Feb 18, 2010 at 05:02:38PM -0500, Benoit Thomas wrote: I am trying to do something like this: function (FOO_DEBUG) ... endfunction (FOO_DEBUG) function (FOO_RELEASE) ... endfunction (FOO_RELEASE) for

Re: [CMake] Is this possible ?

2010-02-18 Thread Tyler Roscoe
On Thu, Feb 18, 2010 at 05:02:38PM -0500, Benoit Thomas wrote: > I am trying to do something like this: > > function (FOO_DEBUG) > ... > endfunction (FOO_DEBUG) > > function (FOO_RELEASE) > ... > endfunction (FOO_RELEASE) > > foreach (CONFIG ${CMAKE_CONFIGURATION_TYPES}) > FOO_${CONF

[CMake] Is this possible ?

2010-02-18 Thread Benoit Thomas
Hi, I am trying to do something like this: function (FOO_DEBUG) ... endfunction (FOO_DEBUG) function (FOO_RELEASE) ... endfunction (FOO_RELEASE) foreach (CONFIG ${CMAKE_CONFIGURATION_TYPES}) FOO_${CONFIG} endforeach(CONFIG) But naturally, it doesn't work :( Is there a way to make

Re: [CMake] CMake 2.8.1 RC 3 is ready to try

2010-02-18 Thread Ben Medina
On Wed, Feb 17, 2010 at 7:39 AM, Bill Hoffman wrote: > CMake 2.8.1 RC 3 is ready to try: > > http://www.cmake.org/files/v2.8/?C=M;O=D > > Please try your projects with it.   If you find any issues, let me know. I > think we are getting very close to the actual release.  Pretty much > regressions o

Re: [CMake] [FindCUDA] CUDA_COMPILE_PTX

2010-02-18 Thread Denis Taniguchi
James, Thanks a lot. Your diagnosis was absolutely right. # # habilitar o módulo FindBoost find_package (Boost 1.42.0 COMPONENTS thread) # habilitar o módulo FindCUDA find_package (CUDA) file (GLOB_RECURSE sources *.cpp) file (G

Re: [CMake] CPACK RPM Gen not allowing symlinks.

2010-02-18 Thread Alexander Neundorf
On Thursday 18 February 2010, Schwartz, Philip wrote: > Hi all, > > I have a few libraries to install with my build that are prebuilt. They > consist of a .so and a symlink to the .so of .so.22. Currently when > installing, things work correctly. But when I do rpm -qpl *.rpm, none of > the symlinks

Re: [CMake] CMAKE_FORCE_CXX_COMPILER question

2010-02-18 Thread Alexander Neundorf
On Thursday 18 February 2010, Buonopane, Robert wrote: > Hi: > Running CMAKE 2.6 > In my project level CMakeList.txt file I have: >INCLUDE (CMakeForceCompiler) >CMAKE_FORCE_CXX_COMPILER(g++ GNU) > > When I build on my Linux platform it compiles and links with g++ which is > what I want. Whe

Re: [CMake] MinGW platform modules for C/CXX and Fortran

2010-02-18 Thread Alexander Neundorf
On Thursday 18 February 2010, Gerald Hofmann wrote: > Hi * ... > Please give me some pointers to help me fixing the MinGW modules: > > - Do I understand the basics for the compiler/platform module naming and > including right? Would it be an option to provide Windows-GNU-C, > Windows-GNU-CXX and Wi

Re: [CMake] How to figure out when a feature was added

2010-02-18 Thread Alexander Neundorf
On Wednesday 17 February 2010, Anton Deguet wrote: > Hello, > > I am trying to find all release notes for CMake. I am currently using the > if (... VERSION_NEWER ...) and I know that it has not always been > available and would like to avoid downloading all past versions of CMake to > figure out

Re: [CMake] Single-shot compilation

2010-02-18 Thread Alexander Neundorf
On Wednesday 17 February 2010, Oliver Smith wrote: > On systems that support it, I'm wanting to do the equivalent of: > > $(CC) -pipe source1.cpp source2.cpp source3.cpp -fwhole-program > > I can't figure out how to tell CMake to pass multiple sources to the > compiler at once. If you really w

[CMake] CPACK RPM Gen not allowing symlinks.

2010-02-18 Thread Schwartz, Philip
Hi all, I have a few libraries to install with my build that are prebuilt. They consist of a .so and a symlink to the .so of .so.22. Currently when installing, things work correctly. But when I do rpm -qpl *.rpm, none of the symlinks are in the RPM. What can I do to fixs this? Thank You, Phili

Re: [CMake] CTEST_UPDATE_COMMAND vs sparse working copy (was Re: continuous integration with CMake)

2010-02-18 Thread Tyler Roscoe
On Thu, Feb 18, 2010 at 11:21:39AM -0500, David Cole wrote: > It's not that the code would be trickier, it's that the CDash database > schema only supports one view of a repository in terms of generating correct > links on its update report pages. So even if ctest allowed you to do this, > CDash wo

Re: [CMake] CMAKE_FORCE_CXX_COMPILER question

2010-02-18 Thread Buonopane, Robert
I have: set_target_properties( daalplugincontainer PROPERTIES VERSION 2.5 # SOVERSION 1 HAS_CXX yes ) But Solaris10 still uses the default gcc instead of the g++ that I want. Any other thoughts on this? Thanks Bob From: cmake-boun...@cmake.org [mailto:cmake-boun...@cm

Re: [CMake] Linking static targets from sibling directories

2010-02-18 Thread Scott MacVicar
Thanks, I was hoping that cmake would know I wanted the static library linked with the other static library target and grab the object files for that. Scott On 18 Feb 2010, at 09:00, "David Cole" mailto:david.c...@kitware.com>> wrote: You're simply misunderstanding what cmake does with static

Re: [CMake] nmake build with different options at command line

2010-02-18 Thread Tyler Roscoe
On Thu, Feb 18, 2010 at 05:07:37PM -, Chauhan, Vikas wrote: > Thanks but is it possible from command line. cmake -DCMAKE_BUILD_TYPE=release ... (I'm pretty sure -D args have to come before other arguments to cmake.) tyler ___ Powered by www.kitwar

Re: [CMake] nmake build with different options at command line

2010-02-18 Thread Chauhan, Vikas
Thanks but is it possible from command line. For example we already have a similar option when cmake is used to build i.e cmd> cmake --build .. --config= Release thanks, Vikas > -Original Message- > From: Bill Hoffman [mailto:bill.hoff...@kitware.com] > Sent: 18 February 2010 13:09 > To:

[CMake] POST install scripts for STGZ

2010-02-18 Thread James Bigler
Is it possible to run a post install script with the STGZ package? I'm wondering since it already is running a script. Thanks, James ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensourc

Re: [CMake] CMake 2.8.1 RC 3 is ready to try

2010-02-18 Thread Brad King
Alan W. Irwin wrote: > On 2010-02-18 08:14-0500 Brad King wrote: > >> Alan W. Irwin wrote: >>> Could CMAKE_MODULE_PATH be treated as a colon-separate list of paths >>> that are >>> searched one after another? That would solve the common modules >>> issue for us. >> >> It is already a list: >> >>

Re: [CMake] Linking static targets from sibling directories

2010-02-18 Thread David Cole
You're simply misunderstanding what cmake does with static libs and target_link_libraries. It does nothing to include all symbols in one library... It simply uses that information to chain all the libs together in a final executable. You can do: add_executable(e e.cxx) target_link_libraries(e one

Re: [CMake] CMAKE_FORCE_CXX_COMPILER question

2010-02-18 Thread Ryan Pavlik
On 2/18/10 9:41 AM, Buonopane, Robert wrote: Hi: Running CMAKE 2.6 In my project level CMakeList.txt file I have: INCLUDE (CMakeForceCompiler) CMAKE_FORCE_CXX_COMPILER(g++ GNU) When I build on my Linux platform it compiles and links with g++ which is what I want. When I build on my

Re: [CMake] CMake 2.8.1 RC 3 is ready to try

2010-02-18 Thread Alan W. Irwin
On 2010-02-18 08:14-0500 Brad King wrote: Alan W. Irwin wrote: Could CMAKE_MODULE_PATH be treated as a colon-separate list of paths that are searched one after another? That would solve the common modules issue for us. It is already a list: set(CMAKE_MODULE_PATH /some/path /some/other/path

Re: [CMake] CMake 2.8.1 RC 3 is ready to try

2010-02-18 Thread Alan W. Irwin
On 2010-02-18 08:20-0500 Bill Hoffman wrote: Alan W. Irwin wrote: I also just discovered that our special CMake D language support infrastructure fails for the static library case for CMake 2.8.1 RC 3. It should take me quite a while to see what is wrong in that case, since language support

Re: [CMake] CTEST_UPDATE_COMMAND vs sparse working copy (was Re: continuous integration with CMake)

2010-02-18 Thread David Cole
It's not that the code would be trickier, it's that the CDash database schema only supports one view of a repository in terms of generating correct links on its update report pages. So even if ctest allowed you to do this, CDash would not produce correct output. There's a lot *more* work to be don

Re: [CMake] Linking static targets from sibling directories

2010-02-18 Thread Scott MacVicar
The linking doesn't include the .a files from the other directories, the final lib is missing those symbols. I checked with nm here, the error doesn't occur until until I attempt to use the built static library. Scott On 18 Feb 2010, at 07:36, "David Cole" mailto:david.c...@kitware.com>> wr

Re: [CMake] CTEST_UPDATE_COMMAND vs sparse working copy (was Re: continuous integration with CMake)

2010-02-18 Thread Tyler Roscoe
On Thu, Feb 18, 2010 at 09:14:05AM -0500, David Cole wrote: > The APPEND option is probably a little more complicated than you think it > is... And it is not "secretly" (or otherwise) added to ctest_update... > CMake, being open source and all, has no secrets. :-) I was just joking about it being

[CMake] Overwriting variables in cache.

2010-02-18 Thread Benoit Thomas
Hi, I am trying to overwrite some variables in the cache (without editing the cache); it works well for variables like CMAKE_CXX_FLAGS, but I cannot overwirte the CMAKE_CONFIGURATION_TYPES variable. Is there a way to do this without having to edit the cache ? (or modifying it the first time t

Re: [CMake] Building paraview with shared libraries

2010-02-18 Thread Dave Partyka
Chances are you need to blow away your build tree, turn on shared libs, and then rebuild. On Thu, Feb 18, 2010 at 10:13 AM, J Cook wrote: > Hi > I am currently trying to build paraview from the source code with shared > libraries. I was able to build this code using CMake 2.8.0 and microsoft > v

Re: [CMake] Linking static targets from sibling directories

2010-02-18 Thread David Cole
What do you mean by "refuses to link the static libraries which are targets from the subfolders" I looked at your CMakeLists.txt files, which, at first glance, look correct... What error do you get? If you say "make VERBOSE=1" does it give you more data about what might be going wrong? On Thu,

[CMake] CMAKE_FORCE_CXX_COMPILER question

2010-02-18 Thread Buonopane, Robert
Hi: Running CMAKE 2.6 In my project level CMakeList.txt file I have: INCLUDE (CMakeForceCompiler) CMAKE_FORCE_CXX_COMPILER(g++ GNU) When I build on my Linux platform it compiles and links with g++ which is what I want. When I build on my Solaris10 platform it compiles with g++ BUT links wit

Re: [CMake] vcproj .user files

2010-02-18 Thread Ryan Pavlik
If it is overwriting, that means that the file you wrote was invalid. Before starting VS, open the generated file and see if it matches what you think it should - possible issues: paths in cmake format rather than native format incorrect quoting incorrect path separators I know that this works

[CMake] Building paraview with shared libraries

2010-02-18 Thread J Cook
Hi I am currently trying to build paraview from the source code with shared libraries. I was able to build this code using CMake 2.8.0 and microsoft visual studio 9 before however BUILD_SHARED_LIBS was off. When I turn this value to on I am still able to generate the files in CMake but I get errors

Re: [CMake] vcproj .user files

2010-02-18 Thread Surya Kiran Gullapalli
On Thu, Feb 18, 2010 at 19:22, Ryan Pavlik wrote: > Make sure you have quit the visual studio instance in that build directory > - VS assumes that only it modifies the .vcproj.user files, so it does not > detect changes and will overwrite a modified file. At least with 2.8.0, > this works fine w

[CMake] [PATCH] KWSys: Avoid buggy SIGCHLD on Interix

2010-02-18 Thread Brad King
On Interix we cannot rely on SIGCHLD because it is only sometimes delivered. Our SIGCHLD handler wakes up any current select() call to check if its child terminated, but the handler itself does not care about any child. Therefore we can use the same handler with SIGALRM to poll at regular interva

Re: [CMake] CTEST_UPDATE_COMMAND vs sparse working copy (was Re: continuous integration with CMake)

2010-02-18 Thread David Cole
The APPEND option is probably a little more complicated than you think it is... And it is not "secretly" (or otherwise) added to ctest_update... CMake, being open source and all, has no secrets. :-) We need to write some docs or an article that explains how to use "APPEND" well. Every call to cte

Re: [CMake] Specifying build directory

2010-02-18 Thread John Drescher
On Thu, Feb 18, 2010 at 2:38 AM, Anders Backman wrote: > Hi all. > Im using latest (2.8 CMake) under Windows, VisualStudio 2008. > > When I mix x86 and x64 builds, I would like to separate the actual output > directory for the builds so that I dont get problems about mixing build > types. > Right

Re: [CMake] Specifying build directory

2010-02-18 Thread Ryan Pavlik
You should do an out-of-source build, and have a separate build directory for each configuration. http://www.cmake.org/Wiki/CMake_FAQ#What_is_an_.22out-of-source.22_build.3F Ryan On Thu, Feb 18, 2010 at 1:38 AM, Anders Backman wrote: > Hi all. > > Im using latest (2.8 CMake) under Windows, Visu

Re: [CMake] vcproj .user files

2010-02-18 Thread Ryan Pavlik
Make sure you have quit the visual studio instance in that build directory - VS assumes that only it modifies the .vcproj.user files, so it does not detect changes and will overwrite a modified file. At least with 2.8.0, this works fine when visual studio is closed. Ryan On Thu, Feb 18, 2010 at

Re: [CMake] FindBoost: trunk

2010-02-18 Thread Hicham Mouline
After all, setting BOOST_ROOT to the directory containing boost trunk, setting additional versions to include 1.43, and invoking FIND_PACKAGE(Boost 1.43 COMPONENTS program_options date_time) worked fine The user just needs to set the version number to 1 + the last released, Rds, Fro

Re: [CMake] CMake 2.8.1 RC 3 is ready to try

2010-02-18 Thread Bill Hoffman
Alan W. Irwin wrote: I also just discovered that our special CMake D language support infrastructure fails for the static library case for CMake 2.8.1 RC 3. It should take me quite a while to see what is wrong in that case, since language support is so "magic" with its own set of hard-to-under

Re: [CMake] CMake 2.8.1 RC 3 is ready to try

2010-02-18 Thread Brad King
Alan W. Irwin wrote: > Could CMAKE_MODULE_PATH be treated as a colon-separate list of paths that are > searched one after another? That would solve the common modules issue for us. It is already a list: set(CMAKE_MODULE_PATH /some/path /some/other/path) list(APPEND CMAKE_MODULE_PATH /some/th

Re: [CMake] nmake build with different options at command line

2010-02-18 Thread Bill Hoffman
Chauhan, Vikas wrote: Hi, Is it possible to specify the build options such as release/debug etc when building the nmake files generated by cmake ? Set CMAKE_BUILD_TYPE in the cache. -Bill -- Bill Hoffman Kitware, Inc. 28 Corporate Drive Clifton Park, NY 12065 bill.hoff...@kitware.com http:/

Re: [CMake] CMake 2.8.1 RC 3 is ready to try

2010-02-18 Thread Bill Hoffman
Craig Bradney wrote: Would these enhancements include finding qmake-mac (as it is named on OSX installed by MacPorts?) Up until 2.8.0 I have found I need to modify this file to make it find the qmake binary. Simply adding qmake-mac to the list of executable names is sufficient. Yes, that chang

[CMake] Linking static targets from sibling directories

2010-02-18 Thread Scott MacVicar
Hi, I've been converting a current autoconf project to use CMake, the layout is such that there is a root directory and 3 sub directories containing various parts of the project. filters and nls build two static libs and mbfl builds a third static lib that links to the previous two. root --fi

Re: [CMake] CMake 2.8.1 RC 3 is ready to try

2010-02-18 Thread Craig Bradney
On 2/17/10 4:39 PM, Bill Hoffman wrote: > CMake 2.8.1 RC 3 is ready to try: > > http://www.cmake.org/files/v2.8/?C=M;O=D > > Please try your projects with it. If you find any issues, let me > know. I think we are getting very close to the actual release. Pretty > much regressions only at this po

[CMake] vcproj .user files

2010-02-18 Thread Surya Kiran Gullapalli
Hello all, I'm facing a weird problem with CONFIGURE_FILE on windows with CMake-2.8.1 (RC3) I've followed the steps outlined here to set PATH environment variable for a

[CMake] MinGW platform modules for C/CXX and Fortran

2010-02-18 Thread Gerald Hofmann
Hi * I'm trying to fix some apparently incomplete modules for mingw cross compilation on a Linux/Mac host. Im using a gcc/gfortran cross compiler toolchain to build for win32 and win64 from a complex C/Fortran mixed language project. As far as I found out, for the C/CXX sources, cmake uses Pl

Re: [CMake] CMake 2.8.1 RC 3 is ready to try

2010-02-18 Thread Alan W. Irwin
On 2010-02-17 10:39-0500 Bill Hoffman wrote: CMake 2.8.1 RC 3 is ready to try: http://www.cmake.org/files/v2.8/?C=M;O=D Please try your projects with it. If you find any issues, let me know. I think we are getting very close to the actual release. Pretty much regressions only at this poin

Re: [CMake] cmake on multicore interix'en

2010-02-18 Thread Markus Duft
Brad King wrote: > Markus Duft wrote: >> Brad King wrote: >>> Can you print out the state of signal masks? >> how can i do that? i'm not really into that topic that much :) but i'll >> read some man pages to figure it out. > > Look at "sigprocmask" docs. ok - this was a dead end - not a single si