On Sunday 28 November 2010 14:04:50 luxInteg wrote: > headers, datatypes, functions seem straight forward, I currently have a > config.h.in refering to 'package' (I assume something to do with > pkgconfig ) for which I have not a clue how to translate using the > tools above:- The said problematic config.h.in file has lines like > these:- > > ----------------------------- > /* Name of package */ > #undef PACKAGE > > /* Define to the address where bug reports for this package should be sent. > */ #undef PACKAGE_BUGREPORT > > /* Define to the full name of this package. */ > #undef PACKAGE_NAME > > /* Define to the full name and version of this package. */ > #undef PACKAGE_STRING > > /* Define to the one symbol short name of this package. */ > #undef PACKAGE_TARNAME > > /* Define to the version of this package. */ > #undef PACKAGE_VERSION > > /* Version number of package */ > #undef VERSION > > /* Define to empty if `const' does not conform to ANSI C. */ > #undef const > > /* Define to rpl_malloc if the replacement function should be used. */ > #undef malloc > > /* Define to rpl_realloc if the replacement function should be used. */ > #undef realloc > -----------------------
I came across the useful wiki http://www.cmake.org/Wiki/CMake:How_To_Write_Platform_Checks And I have also done some searching on the net to learn to use CheckVariableExists.cmake to set arguments for 'PACKAGE' (if so required) in config.h. I have not been successful. So I would be grateful if someone on list could give an example of how CheckVariableExists.cmake is used. _______________________________________________ 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
