 +    COMPILE_FLAGS ${CMAKE_CXX_FLAGS_DEBUG}
 +    VERSION ${qhull_VERSION})
 +
-+target_link_libraries(${qhull_SHARED} m)
-+target_link_libraries(${qhull_SHARED_DEBUG} m)
++if(UNIX)
++  target_link_libraries(${qhull_SHARED} m)
++  target_link_libraries(${qhull_SHARED_DEBUG} m)
++endif(UNIX)
  
  if(UNIX)
      if(APPLE)

     endif()
 endif(UNIX)
 
@@ -215,6 +230,22 @@
     COMPILE_DEFINITIONS "qh_QHpointer"
     VERSION ${qhull_VERSION})
 

--- qhull-2011.1/CMakeLists.txt	2011-04-17 17:38:33.000000000 -0700
+++ qhull-2011.1/CMakeLists.txt	2011-04-25 17:17:13.000000000 -0700
@@ -10,7 +10,7 @@
 # $Id: //main/2011/qhull/CMakeLists.txt#9 $$Change: 1373 $
 # $DateTime: 2011/04/17 22:20:48 $$Author: bbarber $
