Alexander Neundorf escreveu:
I don't think so.
"analyzing the CMakeLists.txt" means executing them basically completely.
See the following pseudocode:
if(WIN32)
define some args
else
define some other args
endif
You're right, I didn't give it much thought it deserves.
Oh, I think some cmake devs are on that too but there were some problems or it
didn't gain a lot... not sure.
Well, at least on linux I've been working with pch since cmake-2.4.7,
albeit in a not so optimal way.
I right now need some kind of mapping data structure, like C++'s
std::map, to record whether I've already created a pch file with certain
flags, and what is its output name. I could do it easily with Lua
because it supports common programming structures (a map, which it
supports natively). But I'm stuck with cmake and must do ugly,
non-optimal (speed-wise) things to simulate this behavior.
Yes, you can get map-like behaviour by using just variables:
SET(MY_MAP_${KEY} myValue)
That's a good trick, thanks. Those caveats should be written somewhere.
Regards,
rod
_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake