[CMake] Intel compilers with Visual Studio Project on Windows

2013-02-28 Thread Nicholas Kinar
Hello, I am wondering if there is a way to have Cmake use Intel compilers on Windows when generating a Visual Studio project file. Searching around the Internet, I found that the following might be used to do this within the CMakeLists.txt file: set_target_properties(inv_spline_interp PROPE

[CMake] WiX Generator Start menu shortcut

2013-02-28 Thread Fredrik Axelsson
Hi! The WiX generator supported by the nightly builds will currently not generate Start Menu Shortcuts. I opened a new ticket in the bugtracker for this feature. http://public.kitware.com/Bug/view.php?id=13967 and I attached a patch to enable this. Best regards, Fredrik Axelsson -- Powered by

Re: [CMake] add_custom_command which generates new sources which I want to specify before

2013-02-28 Thread Eric Noulard
2013/3/1 Baradé : > Hi, > assuming I have the following statements: > > add_library(targetName src1 src2 ... generatedSrc) > add_custom_command(TARGET targetName PRE_BUILD COMMAND bash -c "bla bla > bla") > > and the custom command generates sources which are specified before in > "add_library" CMa

[CMake] add_custom_command which generates new sources which I want to specify before

2013-02-28 Thread Baradé
Hi, assuming I have the following statements: add_library(targetName src1 src2 ... generatedSrc) add_custom_command(TARGET targetName PRE_BUILD COMMAND bash -c "bla bla bla") and the custom command generates sources which are specified before in "add_library" CMake/build process will abort sinc

Re: [CMake] Per-target include dirs that work in both 2.8.7 and 2.8.10.2?

2013-02-28 Thread Jean-Christophe Fillion-Robin
Hi Magnus, As already mentioned, the target property INCLUDE_DIRECTORIES has been introduced in CMake 2.8.8. The following page is useful to find out such things. See http://www.cmake.org/Wiki/CMake_Version_Compatibility_Matrix/Properties#Properties_on_Targets To get around it, as mentioned by Bi

Re: [CMake] Per-target include dirs that work in both 2.8.7 and 2.8.10.2?

2013-02-28 Thread Bill Hoffman
On 2/28/2013 12:29 PM, Alexander Neundorf wrote: Sorry, no, this is a new feature since cmake 2.8.8. Alex Only way to do it before was to make sure each target is in its own directory and then manipulate the includes from there. -Bill -- Powered by www.kitware.com Visit other Kitware open-s

Re: [CMake] ctest_update with git fetch --tags (was: ctest & git submodules)

2013-02-28 Thread NoRulez
Thank you very much. The goal is to have a nightly/continuous build with the tagged version number. Without the "--tags" option it is only working if we push the changes after tagging. With the "--tags" option it is now also possible to move/overwrite tags which gets then updated. In the proj

Re: [CMake] Per-target include dirs that work in both 2.8.7 and 2.8.10.2?

2013-02-28 Thread Alexander Neundorf
On Thursday 28 February 2013, Magnus Therning wrote: > The other day I was putting together some cmake files and made them > work on my system, where I have version 2.8.10.2 installed. After > giving my work to a colleague he reported that it didn't work. It > came down to him using version 2.8.7

Re: [CMake] cmake and MinGW - resolution

2013-02-28 Thread Bill Hoffman
On 2/28/2013 11:56 AM, Donald Robinson wrote: Thanks to Bill Hoffmann and Alan Irwin for helping work through this MinGW problem. As it turns out, the problem in my CMakeLists.txt file wasn’t the residual presence of a CMakeFiles directory or a CMakeCache.txt file, or the command-line, which is c

[CMake] cmake and MinGW - resolution

2013-02-28 Thread Donald Robinson
Thanks to Bill Hoffmann and Alan Irwin for helping work through this MinGW problem. As it turns out, the problem in my CMakeLists.txt file wasn't the residual presence of a CMakeFiles directory or a CMakeCache.txt file, or the command-line, which is correctly: Cmake -G "MinGW Makefiles"

Re: [CMake] ctest_update with git fetch --tags (was: ctest & git submodules)

2013-02-28 Thread Brad King
On 02/28/2013 11:11 AM, NoRulez wrote: > I've attached the two log files, can you take a look on it? After running "git fetch" CMake reads .git/FETCH_HEAD to determine what branch is intended for merge (just as pull does). This is the same as "git pull --tags" failing. You need to specify the re

[CMake] ctest & git submodules

2013-02-28 Thread NoRulez
Hello Brad,I've attached the two log files, can you take a look on it?Thanks in advanceBest Regards Am 28.02.2013 um 16:41 schrieb Brad King : > On 02/28/2013 10:34 AM, NoRulez wrote: >> Yes, it is the command which I want. >> >> On the command line the same command works

Re: [CMake] ctest & git submodules

2013-02-28 Thread Brad King
On 02/28/2013 10:34 AM, NoRulez wrote: > Yes, it is the command which I want. > > On the command line the same command works in the source tree. > > The command only fails during the CTest run if I set the option. Read Testing/Temporary/LastUpdate*.log in the test build tree for verbose detai

Re: [CMake] ctest & git submodules

2013-02-28 Thread NoRulez
Yes, it is the command which I want. On the command line the same command works in the source tree. The command only fails during the CTest run if I set the option. Am 28.02.2013 um 13:07 schrieb Brad King : > On 02/28/2013 02:38 AM, NoRulez wrote: >> But if I set the option: >> set(CTEST_GIT_

Re: [CMake] CHECK_INCLUDE_FILES

2013-02-28 Thread Nico Schlömer
Never mind: The above code does exactly what it's advertised to do. The mistake I'm making lies elsewhere... Sorry for the noise! --Nico On Thu, Feb 28, 2013 at 2:24 PM, Nico Schlömer wrote: > Hi, > > I'd like to find out whether the file /usr/include/vtk-5.8/vtkMPI.h is > present on the system

[CMake] CHECK_INCLUDE_FILES

2013-02-28 Thread Nico Schlömer
Hi, I'd like to find out whether the file /usr/include/vtk-5.8/vtkMPI.h is present on the system. I found CHECK_INCLUDE_FILES, and tried to use it like *snip* cmake_minimum_required(VERSION 2.8) INCLUDE(CheckIncludeFiles) SET(CMAKE_REQUIRED_INCLUDES /usr/include

Re: [CMake] ctest & git submodules

2013-02-28 Thread Kornel Benko
Am Donnerstag, 28. Februar 2013 um 07:07:52, schrieb Brad King > On 02/28/2013 02:38 AM, NoRulez wrote: > > But if I set the option: > > set(CTEST_GIT_UPDATE_OPTIONS "--tags") > > > > Then I get the following error message: > > Update command failed: "C:/Program Files/Git/cmd/git.cmd" "fetch" "-

Re: [CMake] ctest & git submodules

2013-02-28 Thread Brad King
On 02/28/2013 02:38 AM, NoRulez wrote: > But if I set the option: > set(CTEST_GIT_UPDATE_OPTIONS "--tags") > > Then I get the following error message: > Update command failed: "C:/Program Files/Git/cmd/git.cmd" "fetch" "--tags" Isn't that the command you want? Perhaps it really fails. Try runnin

Re: [CMake] Cmake and Visual Studio platforms

2013-02-28 Thread John Drescher
On Thu, Feb 28, 2013 at 6:31 AM, John Drescher wrote: >> There are multiple posts in multiple forums asking this question, so >> naturally there is public need for this feature. How come CMake never aimed >> at creating a solution for this? I suspect there is some great design issue >> that preven

Re: [CMake] Cmake and Visual Studio platforms

2013-02-28 Thread John Drescher
> There are multiple posts in multiple forums asking this question, so > naturally there is public need for this feature. How come CMake never aimed > at creating a solution for this? I suspect there is some great design issue > that prevents implementing it in CMake. There are several platform and

[CMake] Cmake and Visual Studio platforms

2013-02-28 Thread Meteorhead
Hi! I've been learning CMake for the past 2-3 weeks now, expanding my project feature by feature through making a tutorial for fellow scientists, and there is one big question that people (such as myself and others) ask coming from the Windows side of development: Why can't CMake create platforms

[CMake] Per-target include dirs that work in both 2.8.7 and 2.8.10.2?

2013-02-28 Thread Magnus Therning
The other day I was putting together some cmake files and made them work on my system, where I have version 2.8.10.2 installed. After giving my work to a colleague he reported that it didn't work. It came down to him using version 2.8.7 (comes with his Linux distro) and my use of set_proper