Recent CMake versions fail to build at Haiku:
[ 0%] Building C object
Utilities/KWIML/test/CMakeFiles/cmIML_test.dir/test_ABI_C.c.o
In file included from
/boot/home/cmake/Utilities/KWIML/test/test_ABI_C.c:13:
/boot/home/build/cmake/Utilities/cmIML/ABI.h:261: #error "Existence of
'long long' unknown."
make[2]: ***
[Utilities/KWIML/test/CMakeFiles/cmIML_test.dir/test_ABI_C.c.o] Error 1
make[1]: *** [Utilities/KWIML/test/CMakeFiles/cmIML_test.dir/all] Error
2
This is because the default compiler (gcc 2.95) does not define things
like __SIZEOF_LONG__ and __GNUC__ is not a case in the checks for the
different compilers. It is checked e.g. for the signedness of char. This
fixes this for me. I have not submitted it to the next branch because I
assume this is another Kitware magic upstream tree:
diff --git a/Utilities/KWIML/ABI.h.in b/Utilities/KWIML/ABI.h.in
index 7f4772a..a336a80 100644
--- a/Utilities/KWIML/ABI.h.in
+++ b/Utilities/KWIML/ABI.h.in
@@ -255,6 +255,8 @@ suppression macro @KWIML@_ABI_NO_VERIFY was
defined.
# endif
# elif defined(__hpux) && !defined(__GNUC__) /* Old HP: no
__HP_cc/__HP_aCC above */
# define @KWIML@_ABI_SIZEOF_LONG_LONG 8
+# elif defined(__GNUC__)
+# define @KWIML@_ABI_SIZEOF_LONG_LONG 8
# endif
#endif
#if !defined(@KWIML@_ABI_SIZEOF_LONG_LONG) &&
!defined(@KWIML@_ABI_NO_ERROR_LONG_LONG)
Eike
--
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://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers