On Sat, Sep 01, 2012 at 09:25:40PM +0200, Bogdan Cristea wrote: > > On Saturday 01 September 2012 21:13:10 Markus Blatt wrote: > > As long as it is not a member function check_function_exists should > > suffice. > > This will work only if your C++ code uses C functions. > > > Otherwise you might want to look at check_cxx_symbol_exists, which > > also can check for a function. > > Is not the same thing, check_cxx_symbol_exists checks for symbol existence > in the given header, while check_function_exists checks for function > existence > in the given library (or in the default one)
According to the documentation it checks linking for functions and variables: "If the header files declare the symbol as a function or variable then the symbol must also be available for linking. " But maybe I am misinterpreting that sentence... Cheers, Markus -- Dr. Markus Blatt - HPC-Simulation-Software & Services http://www.dr-blatt.de Hans-Bunte-Str. 8-10, 69123 Heidelberg, Germany, USt-Id: DE279960836 -- 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