[CMake] Compile CMakeCache.txt into shared library

2012-02-08 Thread Hänel Nikolaus Valentin
Dear Cmake List, we would like to include a CmakeCache.txt file into our shared library. The reason is, that we would like to know what CMake options were used when compiling the library in case we have only the binary. Has anyone done something like this before and can give me some pointers?

[CMake] Compile CMakeCache.txt into shared library

2012-02-08 Thread Hänel Nikolaus Valentin
Dear Cmake List, we would like to include a CmakeCache.txt file into our shared library. The reason is, that we would like to know what CMake options were used when compiling the library in case we have only the binary. Has anyone done something like this before and can give me some pointers?

Re: [CMake] Compile CMakeCache.txt into shared library

2012-02-08 Thread Johannes Zarl
Hi, I'm not sure if I understand you correctly, but I would guess that in most cases you don't need to know _all_ cmake cache variables at runtime. If you really just need to know some specific variables, you would be much better off using a generated header file. See the documentation for

Re: [CMake] Compile CMakeCache.txt into shared library

2012-02-08 Thread Hänel Nikolaus Valentin
* Johannes Zarl johannes.z...@jku.at [120208]: Hi, I'm not sure if I understand you correctly, but I would guess that in most cases you don't need to know _all_ cmake cache variables at runtime. If you really just need to know some specific variables, you would be much better off using