[CMake] Support for Intel Visual Fortran 2013 Beta

2012-06-01 Thread Zaheer Chothia
Hello, Visual Studio fails to load the project files (.vfproj) generated by CMake 2.8.8 when using the Intel Visual Fortran 2013 Beta [1]: "The selected project was created by a later version of Intel(R) Visual Fortran. It cannot be loaded with this version." Projects generated by the w

Re: [CMake] Nina Generator on Windows generates too long link cmd lines

2012-06-01 Thread Claus Klein
Hi Bill, I have tried to prepare a patch. It generates links rules like that: # Rule for linking CXX executable. rule CXX_EXECUTABLE_LINKER command = $PRE_LINK && /opt/local/libexec/ccache/g++ $FLAGS -Wl,- search_paths_first -Wl,-headerpad_max_install_names $LINK_FLAGS -Wl,@ $out.rsp -o $

Re: [CMake] Saving/Restoring link_directories and link_libraries

2012-06-01 Thread Andreas Mohr
Hi, On Fri, Jun 01, 2012 at 11:09:00AM -0400, cmake-requ...@cmake.org wrote: > Date: Fri, 01 Jun 2012 15:30:32 +0200 > From: Theodore Papadopoulo > > I'm using a library XXX which comes with UseXXX.cmake and > XXXConfig.cmake files (which I cannot touch as they come from linux > distributions).

[CMake] Incorrectly adding "-l" flag to ".lib.a" files

2012-06-01 Thread Alejandro Pulver
Hello, I'm using CMake 2.8.7 on Ubuntu 12.04 64-bit for cross-compiling with MinGW. The following link.txt is generated: /usr/bin/cmake -E remove -f CMakeFiles/dhewm3.dir/objects.a /usr/bin/i686-w64-mingw32-ar cr CMakeFiles/dhewm3.dir/objects.a @CMakeFiles/dhewm3.dir/objects1.rsp /usr/bin/i686-

[CMake] Valgrind fails but ctest doesn't notice

2012-06-01 Thread Paul Harris
Hi, When I run valgrind on a test directly, I see this: $ valgrind test_array ==30643== Memcheck, a memory error detector ==30643== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al. ==30643== Using Valgrind-3.6.0.SVN-Debian and LibVEX; rerun with -h for copyright info ==30643== Comm

Re: [CMake] Using a variable as a method name

2012-06-01 Thread LaViolette, Alan
Thanks that works great. I just wrote an eval macro that does that From: David Cole [mailto:david.c...@kitware.com] Sent: Friday, June 01, 2012 11:22 AM To: LaViolette, Alan Cc: cmake@cmake.org Subject: Re: [CMake] Using a variable as a method name Not directly, but as a workaround, you could wr

[CMake] CMAKE_SUPPRESS_REGENERATION in VS2010

2012-06-01 Thread LaViolette, Alan
I am porting our product over to use cmake vs2010 and am experiencing issues with the automatic regeneration (2010 does not seem to like its projects changing while open), so I would like to just turn it off. I have put the CMAKE_SUPPRESS_REGENERATION variable in and still get the ZERO_CHECK an

Re: [CMake] Using a variable as a method name

2012-06-01 Thread David Cole
Not directly, but as a workaround, you could write that into a file, and then include the file. i.e.: file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/tmp.cmake" "BAR_${FOO}(arg1 arg2)") include(${CMAKE_CURRENT_BINARY_DIR}/tmp.cmake) You may need to do some quoting and/or escaping to get things working d

[CMake] Meaning of CTEST_ENVIRONMENT

2012-06-01 Thread NoRulez
Hello,in an example i saw that CTEST_ENVIRONMENT is used to set specific paths.I tried the same in my CTestScript, but this doesn't work. Can anybody explain me why variant 1 is working and variant 2 is not?1.Variant:set(ENV{QTDIR} "C:\\Qt")set(ENV{PATH} "$ENV{QTDIR};$ENV{QTDIR}\\bin;$ENV{PATH}")2.

[CMake] Using a variable as a method name

2012-06-01 Thread LaViolette, Alan
Hello I would like to call a method based on a variable name such as set( FOO "123") BAR_${FOO}(arg1 arg2) would do the same as BAR_123(arg1 arg2) Does any way exist to do this in CMake, such as a call() or eval() command? -- Alan LaViolette Software Engineering Consultant OVERWATCH An Opera

[CMake] Saving/Restoring link_directories and link_libraries

2012-06-01 Thread Theodore Papadopoulo
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I'm using a library XXX which comes with UseXXX.cmake and XXXConfig.cmake files (which I cannot touch as they come from linux distributions). Unfortunately, the XXXConfig.cmake directly calls include_directories(), add_definitions(), link

Re: [CMake] Select subproject packages

2012-06-01 Thread Eric Noulard
2012/6/1 : > Hi, > > I have a top root project and many subprojects under it. I am using > cpack to package some subprojects, but I don't want to package > the root project. When I run the cpack on root build directory, it > also tried to package the root project. Is there any way to disable > pac

[CMake] Select subproject packages

2012-06-01 Thread jupiter . hce
Hi, I have a top root project and many subprojects under it. I am using cpack to package some subprojects, but I don't want to package the root project. When I run the cpack on root build directory, it also tried to package the root project. Is there any way to disable package the root project?

Re: [CMake] Create a binary package

2012-06-01 Thread jupiter . hce
Thanks Eric, that helps. Kind regards. hce On 2012-05-31 09:20+0200, Eric Noulard wrote: 2012/5/31 jupiter : Hi, Sorry for an FAQ, I am new to cpack. I am going to use cpack to generate an rpm package to contain all binary files, bin, lib etc under CMAKE_BINARY_DIR/myApplicationBinaryDir. Wh

[CMake] Dependencies between independent projects

2012-06-01 Thread Stefan Eilemann
Hi, Apologies for not replying properly to this thread. I just joined the list. By coincidence I just wrote up a blog post on this topic, which I just wanted to share with you. We've faced the same problem and came up with a solution for our projects: http://pogl.wordpress.com/2012/06/01/build