[CMake] check function signature
Nils Gladitz
gladitz at sci-vis.de
Tue Sep 25 09:45:48 EDT 2012
Maybe you want "check_prototype_definition"?
Nils
On 09/25/2012 03:18 PM, Leif Walsh wrote:
> I use check_function_exists() to do some platform checking. On Linux, pthread_yield() returns int, and on FreeBSD, it returns void. Is there a cmake way to distinguish between the two? check_function_exists seems to not use strict enough warnings to make sure the symbol has the right signature at link time.
--
Nils Gladitz, B.Sc.
DICOM, Konnektivität und Entwicklung
Scivis wissenschaftliche Bildverarbeitung GmbH
Bertha-von-Suttner-Str. 5
D-37085 Göttingen
GERMANY
Handelsregister Nr. / Trade Register No. B3100 Göttingen
Geschäftsführer / Managing Directors Dr. Gernot Ebel, Dr. Uwe Engeland
Tel: 0049 (0)551 634181-28
E-Mail: gladitz at scivis.de
Web: www.scivis.de
More information about the CMake
mailing list