Re: [CMake] ctest & git submodules

2013-02-26 Thread NoRulez
I think for the --tags option it is the same, isn't it? How can I set such option for the checkout/update command? Best Regards Am 26.02.2013 um 22:50 schrieb Brad King : > On 2/26/2013 2:52 PM, Jean-Christophe Fillion-Robin wrote: >> +1 to add these into CTest :) What would be the argument aga

Re: [CMake] MinGW Makefile fails make test

2013-02-26 Thread Alan W. Irwin
On 2013-02-26 17:57-0800 Donald Robinson wrote: This is a repost (and rewording) of an earlier post "Setting CMAKE_BUILD_TOOL or CMAKE_MAKE_PROGRAM with MinGW tools," which garnered no response. Hopefully this post is clearer: I have Cmake 2.8.8 installed along with MinGW 4.7.2 on Windows XP

[CMake] MinGW Makefile fails make test

2013-02-26 Thread Donald Robinson
This is a repost (and rewording) of an earlier post "Setting CMAKE_BUILD_TOOL or CMAKE_MAKE_PROGRAM with MinGW tools," which garnered no response. Hopefully this post is clearer: I have Cmake 2.8.8 installed along with MinGW 4.7.2 on Windows XP with no other development tools. I would like this

Re: [CMake] ctest & git submodules

2013-02-26 Thread Marcus D. Hanwell
On Tue, Feb 26, 2013 at 4:50 PM, Brad King wrote: > On 2/26/2013 2:52 PM, Jean-Christophe Fillion-Robin wrote: >> +1 to add these into CTest :) What would be the argument against it ? > > Not every project wants every submodule checked out all the time. > A major use case for them is to have an um

[CMake] Visual Studio and Pure C application

2013-02-26 Thread Totte Karlsson
Hi, I have a simple application that is 'pure C', no C++. The problem I have is that the solution/project file that CMake generates creates a target that is not C, but C++. In other words, __cplusplus is defined and in some headers there are #defines ifdef(__cplusplus) and having that defined

Re: [CMake] ctest & git submodules

2013-02-26 Thread Brad King
On 2/26/2013 2:52 PM, Jean-Christophe Fillion-Robin wrote: > +1 to add these into CTest :) What would be the argument against it ? Not every project wants every submodule checked out all the time. A major use case for them is to have an umbrella project with many submodules and the developer may o

Re: [CMake] QT4 Module Patch Request

2013-02-26 Thread Stephen Kelly
Nicolas Tisserand wrote: > Hi, > >> Date: Tue, 26 Feb 2013 20:25:42 +0100 >> From: Stephen Kelly >> Subject: Re: [CMake] QT4 Module Patch Request >> To: cmake@cmake.org >> Message-ID: >> Content-Type: text/plain; charset="ISO-8859-1" >> >> Could you try this instead? > > Yes, that works equall

Re: [CMake] how to run cmake without cmakelist.txt file

2013-02-26 Thread felix
use cmake -P myscript.cmake -- View this message in context: http://cmake.3232098.n2.nabble.com/how-to-run-cmake-without-cmakelist-txt-file-tp7583370p7583392.html Sent from the CMake mailing list archive at Nabble.com. -- Powered by www.kitware.com Visit other Kitware open-source projects at

Re: [CMake] QT4 Module Patch Request

2013-02-26 Thread Nicolas Tisserand
Hi, > Date: Tue, 26 Feb 2013 20:25:42 +0100 > From: Stephen Kelly > Subject: Re: [CMake] QT4 Module Patch Request > To: cmake@cmake.org > Message-ID: > Content-Type: text/plain; charset="ISO-8859-1" > > Could you try this instead? Yes, that works equally well! Thanks, Nicolas PS: Sorry for th

Re: [CMake] ctest & git submodules

2013-02-26 Thread Jean-Christophe Fillion-Robin
+1 to add these into CTest :) What would be the argument against it ? Jc On Tue, Feb 26, 2013 at 2:40 PM, Marcus D. Hanwell < marcus.hanw...@kitware.com> wrote: > On Tue, Feb 26, 2013 at 2:36 PM, Clinton Stimpson > wrote: > > > > Thanks. I may have to do that for now. > > > > However, it seems

Re: [CMake] ctest & git submodules

2013-02-26 Thread Marcus D. Hanwell
On Tue, Feb 26, 2013 at 2:36 PM, Clinton Stimpson wrote: > > Thanks. I may have to do that for now. > > However, it seems to me that ctest already does a > git submodule update --recurse > but its missing the --init flag to deal with changes to the .gitmodules file. > It also misses git submodule

Re: [CMake] ctest & git submodules

2013-02-26 Thread Clinton Stimpson
Thanks. I may have to do that for now. However, it seems to me that ctest already does a git submodule update --recurse but its missing the --init flag to deal with changes to the .gitmodules file. Clint On Tuesday, February 26, 2013 08:26:21 PM NoRulez wrote: > Here is a working example: >

Re: [CMake] How to specify LD_LIBRARY_PATH for a test?

2013-02-26 Thread Marcus D. Hanwell
On Tue, Feb 26, 2013 at 2:15 PM, Orion Poplawski wrote: > On 02/26/2013 12:06 PM, Alexander Neundorf wrote: >> >> On Tuesday 26 February 2013, Orion Poplawski wrote: >>> >>> We have some tests that load libraries at run time. How can we specify >>> that LD_LIBRARY_PATH needs to be set? >>> >>> fi

Re: [CMake] How to specify LD_LIBRARY_PATH for a test?

2013-02-26 Thread Alexander Neundorf
On Tuesday 26 February 2013, Orion Poplawski wrote: > On 02/26/2013 12:06 PM, Alexander Neundorf wrote: > > On Tuesday 26 February 2013, Orion Poplawski wrote: > >> We have some tests that load libraries at run time. How can we specify > >> that LD_LIBRARY_PATH needs to be set? > >> > >> file(WRI

Re: [CMake] ctest & git submodules

2013-02-26 Thread NoRulez
Here is a working example: ## -- Update git submodules if (EXISTS "${CTEST_SOURCE_DIRECTORY}/.gitmodules") message (" -- Update git submodules ${MODEL} - ${CTEST_BUILD_NAME} --") execute_process (COMMAND ${GIT_EXECUTABLE} submodule update --init --recursive WORKING_DIRECTORY ${CTEST_SOURCE_DIRECTO

Re: [CMake] QT4 Module Patch Request

2013-02-26 Thread Stephen Kelly
Nicolas Tisserand wrote: > Hi, > Hope that helps! Could you try this instead? diff --git a/Modules/FindQt4.cmake b/Modules/FindQt4.cmake index 078c031..4c98a6d 100644 --- a/Modules/FindQt4.cmake +++ b/Modules/FindQt4.cmake @@ -965,13 +965,17 @@ if (QT_QMAKE_EXECUTABLE AND QTVERSION) macr

[CMake] QT4 Module Patch Request

2013-02-26 Thread Nicolas Tisserand
Hi, We're using CMake in a project that depends upon a custom-built Qt version configured using -no-xmlpatterns. We are currently using 2.8.10.2 without problems, but, because I wanted to try the ninja support improvements, I downloaded the latest nightly build for windows and gave it a run on ou

Re: [CMake] ctest & git submodules

2013-02-26 Thread NoRulez
Hi, I don't think so, you could check for a .git directory and then call git submodule update --init --recursive Best Regards Am 26.02.2013 um 18:34 schrieb Clinton Stimpson : > > Is there anything special I need to do with ctest so that the ctest_update() > will recognize git submodules and

Re: [CMake] How to specify LD_LIBRARY_PATH for a test?

2013-02-26 Thread Orion Poplawski
On 02/26/2013 12:06 PM, Alexander Neundorf wrote: On Tuesday 26 February 2013, Orion Poplawski wrote: We have some tests that load libraries at run time. How can we specify that LD_LIBRARY_PATH needs to be set? file(WRITE ${CMAKE_SOURCE_DIR}/testsuite/launchtest.c "${LAUNCH}") add_executable(l

Re: [CMake] How to specify LD_LIBRARY_PATH for a test?

2013-02-26 Thread Alexander Neundorf
On Tuesday 26 February 2013, Orion Poplawski wrote: > We have some tests that load libraries at run time. How can we specify > that LD_LIBRARY_PATH needs to be set? > > file(WRITE ${CMAKE_SOURCE_DIR}/testsuite/launchtest.c "${LAUNCH}") > add_executable(launchtest EXCLUDE_FROM_ALL > ${CMAKE_SOURCE

[CMake] How to specify LD_LIBRARY_PATH for a test?

2013-02-26 Thread Orion Poplawski
We have some tests that load libraries at run time. How can we specify that LD_LIBRARY_PATH needs to be set? file(WRITE ${CMAKE_SOURCE_DIR}/testsuite/launchtest.c "${LAUNCH}") add_executable(launchtest EXCLUDE_FROM_ALL ${CMAKE_SOURCE_DIR}/testsuite/launchtest.c) add_library(test_ce SHARED EXC

[CMake] the correct way of passing CCACHE_BASEDIR.

2013-02-26 Thread Paweł Sikora
Hi, i'd like to pass a CCACHE_BASEDIR enviroment variable to the cmake build system but i'm not sure how to do it correctly. google shows some old posts with CMAKE_C{XX}_OBJECT_COMPILE tricks but they don't work for me. have you any examples/ideas about passing ccache env vars? BR, Paweł. --

[CMake] ctest & git submodules

2013-02-26 Thread Clinton Stimpson
Is there anything special I need to do with ctest so that the ctest_update() will recognize git submodules and do any init/update of those for me? I assumed it would be automatic, but that doesn't seem to be the case. -- Clinton Stimpson Elemental Technologies, Inc Computational Simulation So

Re: [CMake] Not resolving Symlinks at all

2013-02-26 Thread Michael Jackson
I fell like an idiot. Thanks. That is the problem. Just have to tell my self to "slow down".. Thanks -- Mike Jackson On Feb 26, 2013, at 11:05 AM, Kornel Benko wrote: > Am Dienstag, 26. Februar 2013 um 10:52:36, schrieb Michael Jackson > > > I have the following code: > > > > message(STATUS

Re: [CMake] Not resolving Symlinks at all

2013-02-26 Thread Kornel Benko
Am Dienstag, 26. Februar 2013 um 10:52:36, schrieb Michael Jackson > I have the following code: > > message(STATUS "Found HDFLibrary ${HDF5_LIBRARY_RELEASE}") > > if(IS_SYMLINK ${HDF_LIBRARY_DEBUG}) > message(STATUS "SYMLINK: ${HDF_LIBRARY_DEBUG}") > get_filename_component(test ${HDF_LIBRAR

[CMake] Not resolving Symlinks at all

2013-02-26 Thread Michael Jackson
I have the following code: message(STATUS "Found HDFLibrary ${HDF5_LIBRARY_RELEASE}") if(IS_SYMLINK ${HDF_LIBRARY_DEBUG}) message(STATUS "SYMLINK: ${HDF_LIBRARY_DEBUG}") get_filename_component(test ${HDF_LIBRARY_DEBUG} REALPATH) message(STATUS "Real Path: ${test}") endif() if(IS_SYMLINK ${H

[CMake] Getting Proper set of libraries when symlinks are involved

2013-02-26 Thread Michael Jackson
I am trying to deploy an application using HDF5 libraries. For reasons that I can not figure out I seem to not be able to use static libraries so I am trying to figure out the dynamic libraries. The HDF5 installation has the following: lrwxrwxrwx. 1 mjackson mjackson 16 Feb 26 08:57 libhdf5

[CMake] help with lahey (fortran) patch

2013-02-26 Thread Yngve Inntjore Levinsen
Hello, I am in the process of preparing a patch proposal for the Lahey/Fujitsu Fortran compiler (lf95). As I am not a programming expert nor a cmake expert, I tried to base myself on the already available files for Intel/NAG and friends in the Modules directory. Some specific questions in additio