find a python
interpreter,
/usr/sfw/bin/python
bash: /usr/sfw/bin/python: No such file or directory
I just get
MYVAR =
ERROR =
echo $?
0
No error? (Apparently error output didn't work?)
I know, it's always possible to write such scripts, but
it's quite some work to make it work under many circumstances.
But I guess writing all kinds of subroutines should be much
easier in cmake than in make.
Thanks Eric!
--
Gonzalo Garramuño wrote:
CMake provides FILE( GLOB ...) and similar
constructs to do what you want.
Should suffice for most tasks.
Regarding the question of power, I'll have to make my own
experiences, but good to hear that it works for you.
I am attaching a simple 'mk' bash script I use to run cmake (and normal
makefiles) in a cross-platform way (and to simplify the creating of
out-of-source builds) and a simple optional FindBuildDir.cmake that,
optionally, works with it.
I think you'll find that useful in understanding how cmake can be made
to work for a large project.
Interesting; never seen that usage()-syntax?!? I see, something to learn.
I'll guess I'll definitely make use of your script!
I don't understand the role of FindBuildDir.cmake? How do you use it?
It appears to be a macro collection, plus some code which gets
executed (but when and how)?
The division of work between the master script and cmake needs to
be figured out, but the main idea seems to me that the master script
is just there to call the right cmake or make, and to provide it
just with the necessary parameters.
Thanks Gonzalo!
-
Brandon Van Every wrote:
No guarantees that it'll keep working, so thanks for reminding me to
make a feature request in the bug tracker.
Let's hope the best!
-
Puuh; so well, then it seems clear what to do; only somebody
needed for the job (whoops, that seems to be me).
Thanks a lot for all the input! It will now take a while,
but I guess sooner or later you will see me again on this
list.
Oliver
--
Dr. Oliver Kullmann
Computer Science Department
University of Wales Swansea
Faraday Building, Singleton Park
Swansea SA2 8PP, UK
http://cs-svr1.swan.ac.uk/~csoliver/
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake