Hi Robert & all,
On my (Windows) machine, trying to run CMake on VPB (latest trunk) fails when
trying to locate OSG, because of EXEC_PROGRAM().
I tried adding "${OSG_BUILD_DIR}" as working directory but it fails too. I
tried then to replace EXEC_PROGRAM() with EXECUTE_PROCESS(): it still fails but
at least I don't have tons of error messages.
Already encountered something like this (did not manage to find an answer in
archives)? Is there a way to fix that? Any idea?
Thanks.
FYI, in my lightweight engine, I've adopted another kind of solution: when I
configure the project, it creates a "CMakeMarker.txt" with some values in it.
This file is installed alongside headers. The corresponding finder then locates
the file at the same time it locates headers and the parses it to get values
reflecting the configuration. I think it's less error prone than launching an
executable, but drawbacks are:
- It's tied to CMake (even if it's clear text and can be read elsewhere)
- If you change the data in the file, then you must change finders, and ensure
finders can handle older versions.
The system is not very complete yet, and may be extended to store "name,
values" pairs for instance.
Do you think this may be useful for OSG?
Sukender
PVLE - Lightweight cross-platform game engine - http://pvle.sourceforge.net/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org