Hi, On Tuesday, 2. April 2013, 06:42:47, Ashi wrote: > I think I find something to explain this: the config.cmake(the > CMAKE_TOOLCHAIN_FILE) is reloaded several times. on first-load, the A is > set, but on second-load and later-load, the A is not set. I think I can get > around this problem when A is kept set. However, I don't know how can I > keep the value set in cmake. Could anyone give me some suggestion? Thanks!
I'm not entirely sure what you're trying to do, but it seems like you would want to make A, B, and C into cache variables. That way subsequent cmake runs will use the same value... Johannes -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake