aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Kümmel <syntheticpp@gmx.net>2006-02-05 03:23:14 +0000
committerPeter Kümmel <syntheticpp@gmx.net>2006-02-05 03:23:14 +0000
commit4fcbcf67384df12e986f06d491262e3e28da5732 (patch)
tree518136671fac06bcb80f140b74055572e7265ae8
parentf0e9823a6122993b104bd5bd44fdb48f2db90d1c (diff)
downloadextra-cmake-modules-4fcbcf67384df12e986f06d491262e3e28da5732.tar.gz
extra-cmake-modules-4fcbcf67384df12e986f06d491262e3e28da5732.tar.bz2
with msvc all tests fail because of a linker error
svn path=/trunk/KDE/kdelibs/; revision=505849
-rw-r--r--modules/CheckPrototypeExists.cmake4
1 files changed, 4 insertions, 0 deletions
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;
}