[CMake] failing post-build command

2007-05-02 Thread Jesper Eskilson

Hi all,

If a post-build command fails, the associated target is not rebuilt
(This holds at least for the NMake and Visual Studio generators). This
is very annoying, as it makes it impossible to be sure that everything
is in place unless I do a complete rebuild.

Is there any way to fix this?

--
/Jesper
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] ctest -DContinuousBuild doesn't build

2007-05-02 Thread David Cole

Try passing all the arguments at once to one invocation of ctest:

ctest -DContinuousStart -DContinuousConfigure -DContinuousUpdate --overwrite
SVNUpdateOptions=-r1 -DContinuousBuild

Does that work?



On 5/2/07, Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA 
[EMAIL PROTECTED] wrote:


 Hi,

I run the following sequence of commands:

ctest -DContinuousStart
ctest -DContinuousConfigure
ctest -DContinuousUpdate --overwrite SVNUpdateOptions=-r1
ctest -DContinuousBuild

The last command will not do anything. It just exits silently even
though they were updates. I even updated my sources by hand to 100
revisions
back to test it. The step
ctest -DContinuousUpdate --overwrite SVNUpdateOptions=-r1
reports update by 100 revisions and a few hundred files updated. However,
there is no compilation by ContinuousBuild.
Any ideas?

--
Artur Kedzierski

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

[CMake] qt4_cmake_ts

2007-05-02 Thread BrĂ¡ulio Oliveira

Hello,

I saw Patrick's message at cmake mailing list (
http://public.kitware.com/pipermail/cmake/2006-July/010055.html) searching
for somethings that take cares of qt3 .ts translations files. His code
didn't work, but it because of a single line: MAIN_DEPENDENCY
translations/${prefix}-${lang}.ts ! I modified it a bit and transcribed it
here:

MACRO (QT4_WRAP_TS lupdate_outputs lrelease_outputs prefix)
   set(QT_LUPDATE_EXECUTABLE lupdate)
   set(QT_LRELEASE_EXECUTABLE lrelease)
   FOREACH (lang ${ARGN})
#create/update .ts file
   SET(tsfile translations/${prefix}-${lang}.ts)
   ADD_CUSTOM_COMMAND(OUTPUT ${tsfile}
   COMMAND ${QT_LUPDATE_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR} -ts
${tsfile}
   )

#create .qm file
   SET(qmfile translations/${prefix}-${lang}.qm)
   ADD_CUSTOM_COMMAND(OUTPUT ${qmfile}
   COMMAND ${QT_LRELEASE_EXECUTABLE} ${tsfile} -qm ${qmfile}
   MAIN_DEPENDENCY translations/${prefix}-${lang}.ts
   )

#append to the list of translations
   SET(${lupdate_outputs} ${${lupdate_outputs}} ${tsfile})
   SET(${lrelease_outputs} ${${lrelease_outputs}} ${qmfile})
   ENDFOREACH(lang)
ENDMACRO (QT4_WRAP_TS)

After this you run it, as the example below:

qt4_wrap_ts(foo_TS foo_QM foo
   pt_BR
)

Then you add a target/executable that depends on foo_QM and it will generate
the wanted .qm files.
I'm posting this here because I think FindQt4.cmake should already had this
macro. As you can see, it could be easily adapted for it. Hope this get
merged


Best Regards,
BrĂ¡ulio
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

[CMake] Help getting -l and -L arguments from apr-config

2007-05-02 Thread Matthew Woehlke
I am trying to fix kdesdk's broken attempt to link to subversion (it 
croaks when apr is not in a standard include path). I *do* have 
apr-config accessible so I can use that to get the right paths, but I'm 
having some trouble parsing --link-ld. Specifically, I am trying to 
iterate over each option and set LIBRARIES or LIB_PATHS as appropriate. 
Unfortunately this means I have to do something to split the single 
string into arguments, and I would /prefer/ for it to do proper shell 
splitting just in case an arg has a space in it.


Is there a right way to do this? Or is there a better way to get 
LIBRARIES and LIB_PATHS from apr-config? (Note: while apr-config is 
found, pkg-config apr is not, so I can't use pkg-config :-(.)


--
Matthew
Doggy! -- Robots from Freefall (http://freefall.purrsia.com)

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] Help getting -l and -L arguments from apr-config

2007-05-02 Thread Alan W. Irwin

On 2007-05-02 17:49-0500 Matthew Woehlke wrote:

I am trying to fix kdesdk's broken attempt to link to subversion (it croaks 
when apr is not in a standard include path). I *do* have apr-config 
accessible so I can use that to get the right paths, but I'm having some 
trouble parsing --link-ld. Specifically, I am trying to iterate over each 
option and set LIBRARIES or LIB_PATHS as appropriate. Unfortunately this 
means I have to do something to split the single string into arguments, and I 
would /prefer/ for it to do proper shell splitting just in case an arg has a 
space in it.


Is there a right way to do this? Or is there a better way to get LIBRARIES 
and LIB_PATHS from apr-config? (Note: while apr-config is found, pkg-config 
apr is not, so I can't use pkg-config :-(.)


I assume that apr-config generates command-line results for the Apache
Runtime Library similar to what pkg-config does in general.  If that
assumption is correct, then to parse the apr-config output you should follow
what is done in FindPkgConfig.cmake (a replacement for UsePkgConfig.cmake in
CMake cvs, but not released yet).  I don't know the implementation details
in FindPkgConfig.cmake, but I do know the pkg_check_modules macro in that
module file delivers nicely parsed (and complete) pkg-config results.

Alan
__
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of
Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__

Linux-powered Science
__
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake