Ryan C. Gordon wrote:

Nice in porting CMake to BeOS !

There were a small pile of little changes (like the lack of usleep() and realpath(), and mkdir("path/") failing with ENOENT instead of just making "path" like you'd expect), but the biggest changes were in Source/kwsys/ProcessUNIX.c, where select() doesn't work. BeOS treats

I thought that YellowTab by now would have a full POSIX implementation. Your patch should theorically only be applied to BeOS 5.03. If you had the time to double check, that would be fantastic.

select() like WinSock does...it doesn't work with regular file descriptors. That code got rewritten to use non-blocking reads. It's an #ifdef right now, but I tested it on Linux, and it works, so it might be better to just ditch the select() codepath altogether rather than keep them both. Other than that, I filled in the DynamicLoader code and then just kept cleaning things up until it compiled and passed all the tests.

I'm not really a BeOS expert, but this appears to work well enough. It may need more tweaking, but it seemed to me that every project I tried was able to build Unix Makefiles properly with CMake. I'd like to see this patch integrated with the official CMake distribution.


Mathieu
_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to