[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/buildyard-c-source-project-management/


HTH,

Stefan.

PS: Contributions are welcome!
-- 
http://www.eyescale.ch
http://www.equalizergraphics.com
http://www.linkedin.com/in/eilemann



--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


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. Which cpack variable I can use to
define the package content to include the binary directory?


With you don't "include" a binary directory.

CPack is using the "INSTALL(... DESTINATION)" to build the package,
basically each targets, file etc... which appear in INSTALL(...) rules in your
CMakeLists.txt files.

You can find more informations on CPack there:
http://www.cmake.org/Wiki/CMake#CPack
or there:
https://github.com/TheErk/CMake-tutorial/blob/master/CMake-tutorial-8feb2012.pdf?raw=true


--
Erk
Le gouvernement représentatif n'est pas la démocratie --
http://www.le-message.org


--

--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


[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?

Thank you.

Kind regards,

hce

--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


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
> package the root project?

Not really see : http://public.kitware.com/Bug/view.php?id=11808
and related bugs.

A possible workaround would be to use CPack COMPONENT
and set CPACK_COMPONENTS_ALL to the list off component
you want ot package.

see:
http://www.vtk.org/Wiki/CMake:Component_Install_With_CPack

-- 
Erk
Le gouvernement représentatif n'est pas la démocratie --
http://www.le-message.org
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


[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_directories() and
link_libraries().

The last two are particularly unwelcome as they force the link of all
the executables with the XXX libraries whereas I only need them in one
such executable.

So my question is, is there a way/trick to save the state of these 4
quantities (link_directories, definitions, link_directories and
link_libraries) before the FindPackage(XXX) call and to restore to
these saved values after the call.

I hope for sthg like a property but I cannot find it (even looking at
the sources).

Otherwise, the only simple option I have is to call the
FindPackage(XXX) at the latest possible time. But this is rather
fragile IMHO.

Thank's a lot for any insight,

Theo.

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEUEARECAAYFAk/Iw/gACgkQEr8WrU8nPV2YUQCYtAhKbIR6V+dKf4ZAcKMVt7+o
9QCfbC49rP3wc8pdIholZba1JyCg08w=
=hd7B
-END PGP SIGNATURE-
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


[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 Operating Unit of Textron Systems
21660 Ridgetop Circle, Suite 110
Sterling, VA 20166
Office: (703) 437-7651 x 2419
Fax: (703) 437-0039
alaviole...@overwatch.textron.com
www.overwatch.com

"WARNING: Documents that can be viewed, printed or retrieved from this E-Mail 
may contain technical data whose export is restricted by the Arms Export 
Control Act (Title 22, U.S.C., Sec 2751, et seq,) or the Export Administration 
Act of 1979, as amended, Title 50, U.S.C., App. 2401 et seq. and which may not 
be exported, released or disclosed to non-U.S. persons (i.e. persons who are 
not U.S. citizens or lawful permanent residents ["green card" holders]) inside 
or outside the United States, without first obtaining an export license.  
Violations of these export laws are subject to severe civil, criminal and 
administrative penalties."

--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

[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.Variant:set(CTEST_ENVIRONMENT "QTDIR=C:\\Qt"  "PATH=%QTDIR%\;%QTDIR%\\bin\;%PATH%")Thanks in advanceBest RegardsNoRulez--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

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
depending on how complex arg1 and arg2 are in reality.

This sort of "eval" functionality has been requested (and denied ;-) before:

  http://public.kitware.com/Bug/view.php?id=4034
  http://public.kitware.com/Bug/view.php?id=11845


HTH,
David


On Fri, Jun 1, 2012 at 11:02 AM, LaViolette, Alan <
alaviole...@overwatch.textron.com> wrote:

>  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 Operating Unit of Textron Systems*
>
> 21660 Ridgetop Circle, Suite 110**
>
> Sterling, VA 20166**
>
> Office: (703) 437-7651 x 2419**
>
> Fax: (703) 437-0039
>
> *alaviole...@overwatch.textron.com* ***
> *
>
> www.overwatch.com
>
> * *
>
> "WARNING: Documents that can be viewed, printed or retrieved from this
> E-Mail may contain technical data whose export is restricted by the Arms
> Export Control Act (Title 22, U.S.C., Sec 2751, et seq,) or the Export
> Administration Act of 1979, as amended, Title 50, U.S.C., App. 2401 et seq.
> and which may not be exported, released or disclosed to non-U.S. persons
> (i.e. persons who are not U.S. citizens or lawful permanent residents
> [“green card” holders]) inside or outside the United States, without first
> obtaining an export license.  Violations of these export laws are subject
> to severe civil, criminal and administrative penalties."
>
> ** **
>
> --
>
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

[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 and the CMakeList.txt dependencies in the project files.  What do I 
need to get this to work.

I am setting it from the command line so it is defined first thing
"-DCMAKE_SUPPRESS_REGENERATION:BOOL=1"

Thanks

--
Alan LaViolette
Software Engineering Consultant
OVERWATCH
An Operating Unit of Textron Systems
21660 Ridgetop Circle, Suite 110
Sterling, VA 20166
Office: (703) 437-7651 x 2419
Fax: (703) 437-0039
alaviole...@overwatch.textron.com
www.overwatch.com

"WARNING: Documents that can be viewed, printed or retrieved from this E-Mail 
may contain technical data whose export is restricted by the Arms Export 
Control Act (Title 22, U.S.C., Sec 2751, et seq,) or the Export Administration 
Act of 1979, as amended, Title 50, U.S.C., App. 2401 et seq. and which may not 
be exported, released or disclosed to non-U.S. persons (i.e. persons who are 
not U.S. citizens or lawful permanent residents ["green card" holders]) inside 
or outside the United States, without first obtaining an export license.  
Violations of these export laws are subject to severe civil, criminal and 
administrative penalties."

--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

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 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 depending 
on how complex arg1 and arg2 are in reality.

This sort of "eval" functionality has been requested (and denied ;-) before:

  http://public.kitware.com/Bug/view.php?id=4034
  http://public.kitware.com/Bug/view.php?id=11845


HTH,
David


On Fri, Jun 1, 2012 at 11:02 AM, LaViolette, Alan 
mailto:alaviole...@overwatch.textron.com>> 
wrote:
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 Operating Unit of Textron Systems
21660 Ridgetop Circle, Suite 110
Sterling, VA 20166
Office: (703) 437-7651 x 2419
Fax: (703) 437-0039
alaviole...@overwatch.textron.com
www.overwatch.com

"WARNING: Documents that can be viewed, printed or retrieved from this E-Mail 
may contain technical data whose export is restricted by the Arms Export 
Control Act (Title 22, U.S.C., Sec 2751, et seq,) or the Export Administration 
Act of 1979, as amended, Title 50, U.S.C., App. 2401 et seq. and which may not 
be exported, released or disclosed to non-U.S. persons (i.e. persons who are 
not U.S. citizens or lawful permanent residents ["green card" holders]) inside 
or outside the United States, without first obtaining an export license.  
Violations of these export laws are subject to severe civil, criminal and 
administrative penalties."


--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

[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== Command: test_array
==30643==
==30643== Conditional jump or move depends on uninitialised value(s)
==30643==at 0x402291: test_misc (in test_array)
==30643==by 0x404A53: run_tests (in test_array)
==30643==by 0x402257: main (in test_array)
==30643==
==30643==
==30643== HEAP SUMMARY:
==30643== in use at exit: 0 bytes in 0 blocks
==30643==   total heap usage: 70 allocs, 70 frees, 6,647 bytes allocated
==30643==
==30643== All heap blocks were freed -- no leaks are possible
==30643==
==30643== For counts of detected and suppressed errors, rerun with: -v
==30643== Use --track-origins=yes to see where uninitialised values come
from
==30643== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 4 from 4)


(note the bug I put in on purpose)

When ctest runs, it just says "passed".

Surely it should flag a problem?  What am I doing wrong?

thanks,
Paul
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

[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-w64-mingw32-g++  -DID_ENFORCE_KEY=0 -DNDEBUG -O3 -ffast-math 
-fno-unsafe-math-optimizations -fomit-frame-pointer-mwindows  -m32 
-Wl,--whole-archive CMakeFiles/dhewm3.dir/objects.a -Wl,--no-whole-archive  -o 
dhewm3.exe -Wl,--out-implib,libdhewm3.dll.a 
-Wl,--major-image-version,0,--minor-image-version,0  libidlib.a -lopengl32 
/home/ale/temp/dhewm3-libs/i686-w64-mingw32/lib/OpenAL32.lib 
-l../../dhewm3-libs/i686-w64-mingw32/lib/libogg.dll.a 
-l../../dhewm3-libs/i686-w64-mingw32/lib/libvorbisfile.dll.a 
-l../../dhewm3-libs/i686-w64-mingw32/lib/libvorbis.dll.a 
-l../../dhewm3-libs/i686-w64-mingw32/lib/libcurl.dll.a 
-l../../dhewm3-libs/i686-w64-mingw32/lib/libjpeg.dll.a 
-l../../dhewm3-libs/i686-w64-mingw32/lib/libSDL.dll.a -lwinmm -liphlpapi 
-lwsock32 -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 
-luuid -lcomdlg32 -ladvapi32

Notice that library archive files such as libogg.dll.a have an incorrect "-l" 
option added, in contrast to "libdhewm3.dll.a" and "libidlib.a". That's why 
linking fails. If I remove the "-l" flags on those, then it builds and runs 
fine.

The CMakeLists.txt is at:
https://github.com/alepulver/dhewm3/blob/master/neo/CMakeLists.txt

I believe you can ignore the "mods" subdirectory, as well as GAME, D3XP, 
DEDICATED options for this issue. Only CORE is required. In the "sys/cmake" 
subdirectory there are CMake scripts to find Ogg, Vorbis and VorbisFile. There 
are build instructions in the parent folder in case you want to reproduce. 

Please note that configure fails when checking for "-fvisibility=hidden" 
availability (though it works fine when removing the check and adding the 
flag). I don't know if I should sent another mail for this one, or even how to 
get the compiler error log for the test program.

Thanks in advance,
Alejandro
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


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).
> 
> Unfortunately, the XXXConfig.cmake directly calls
> include_directories(), add_definitions(), link_directories() and
> link_libraries().

To quote the carpenter: "OUCH!!" (throwing his hammer into a faraway
corner).

> So my question is, is there a way/trick to save the state of these 4
> quantities (link_directories, definitions, link_directories and
> link_libraries) before the FindPackage(XXX) call and to restore to
> these saved values after the call.

Think scoping to the rescue. At least that might be a nice trick
to get it to work.

- create a victim subdirectory (specifically named -
  "workaround_braindead_config_file") specifically for the task
  of using the project config within its CMakeLists.txt
- reference it there
- grab all of the related values via directory properties or some such
  (as far as it is possible to access these config settings, that is - I'm not 
sure)
- export all these settings via GLOBAL properties (or cache variables?) or some
  such
- after the add_subdirectory() "call",
  the local config will now *NOT* be changed (subdirectory-only scope,
  fortunately!!)
- grab all required elements from the GLOBAL properties set by the sub
  directory code and configure your local targets with these

[plus, for possibly target-specific configuration done by the Config file,
provide a dummy victim target to gather these values from]

This mechanism is so stupendously daring that it might just happen to work ;)

Andreas Mohr
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


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 $out $LINK_LIBRARIES && $POST_BUILD

  description = Linking CXX executable $out
  rspfile = $out.rsp
  rspfile_content = $in

Please read carefully my comments, not all may be right now.
It may used as a prototype. I dit basic test only, it works at least  
on win32 and on my macbook. Pleas check.


Claus


NinjaGeneratorBuildCommandLine.patch
Description: Binary data


NinjaUseResponseFile.patch
Description: Binary data



On 30.05.2012, at 19:50, Bill Hoffman wrote:


On 5/30/2012 1:07 PM, Peter Kuemmel wrote:




The cmake code needs to be updated to use the native ninja response
files.   If you are interested in this work, I can help you figure  
out

where to make the changes.

-Bill


Have you started working on this? And is there somewhere already a  
branch?

If not, where is the best place for such a branch, github or stage?

Peter

No, no not much actual work...


However, what needs to be done is this:

http://martine.github.com/ninja/manual.html#_rule_variables
rspfile, rspfile_content
rule link
 command = link.exe /OUT$out [usual link flags here] @$out.rsp
 rspfile = $out.rsp
 rspfile_content = $in

We have to add this code to the cmNinjaNormalTargetGenerator.cxx

I think this method will also have to be updated to know about  
rspfiles:

cmGlobalNinjaGenerator::WriteRule


Claus did this by hand and it worked:

rule CXX_EXECUTABLE_LINKER
 #XXX command = cmd.exe /c $PRE_LINK && C:\Programme\CMake2.8\bin 
\cmake.exe -E vs_link_exe c:\PROGRA~1\MICROS~4\VC\bin\link.exe / 
nologo /OUT:$out /DEBUG /PDB:$TARGET_PDB /IMPLIB:$TARGET_IMPLIB / 
version:0.0  @$out.rsp && $POST_BUILD
 command = cmd.exe /c $PRE_LINK && C:\PROGRA~1\MICROS~4\VC\bin 
\link.exe /nologo /OUT:$out /DEBUG /PDB:$TARGET_PDB /IMPLIB: 
$TARGET_IMPLIB /version:0.0  @$out.rsp && $POST_BUILD

 description = Linking CXX executable $out
 rspfile = $out.rsp
 rspfile_content = $FLAGS $LINK_FLAGS $LINK_LIBRARIES $in



--
Bill Hoffman
Kitware, Inc.
28 Corporate Drive
Clifton Park, NY 12065
bill.hoff...@kitware.com
http://www.kitware.com
518 881-4905 (Direct)
518 371-3971 x105
Fax (518) 371-4573
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

[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 wizard within Visual Studio have the version set to
11.0, as was the case with Intel Fortran 11.x and 12.x.  This issue is easy to
diagnose (see patch following this mail) and I have tested that it works with:

Microsoft Visual Studio 10.0.40219.1
Intel Visual Fortran 13.0.0.041 Beta Build 20120425

(I am posting this mostly for others who may be searching for the
error message above.)

--Zaheer

[1]: http://software.intel.com/en-us/forums/showthread.php?t=104792

--- a/Source/cmLocalVisualStudio7Generator.cxx
+++ b/Source/cmLocalVisualStudio7Generator.cxx
@@ -1933,9 +1933,10 @@ cmLocalVisualStudio7Generator
   vskey += "\\Packages\\" CM_INTEL_PLUGIN_GUID ";ProductVersion";
   cmSystemTools::ReadRegistryValue(vskey.c_str(), intelVersion,
cmSystemTools::KeyWOW64_32);
-  if (intelVersion.find("12") == 0 || (intelVersion.find("11") == 0))
+  if (intelVersion.find("13") == 0 || intelVersion.find("12") == 0 ||
+  intelVersion.find("11") == 0)
 {
-// Version 11.x and 12.x actually use 11.0 in project files!
+// Version 11.x, 12.x and 13.x actually use 11.0 in project files!
 intelVersion = "11.0" ;
 }
   else if(intelVersion.find("10") == 0)
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake