From 4fcbcf67384df12e986f06d491262e3e28da5732 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20K=C3=BCmmel?= Date: Sun, 5 Feb 2006 03:23:14 +0000 Subject: with msvc all tests fail because of a linker error svn path=/trunk/KDE/kdelibs/; revision=505849 --- modules/CheckPrototypeExists.cmake | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'modules/CheckPrototypeExists.cmake') diff --git a/modules/CheckPrototypeExists.cmake b/modules/CheckPrototypeExists.cmake index 90f7d5dc..0c72adef 100644 --- a/modules/CheckPrototypeExists.cmake +++ b/modules/CheckPrototypeExists.cmake @@ -20,7 +20,11 @@ void cmakeRequireSymbol(int dummy,...){(void)dummy;} int main() { #ifndef ${_SYMBOL} +#ifndef _MSC_VER cmakeRequireSymbol(0,&${_SYMBOL}); +#else + char i = sizeof(&${_SYMBOL}); +#endif #endif return 0; } -- cgit v1.2.1