Revision: 54168
          http://brlcad.svn.sourceforge.net/brlcad/?rev=54168&view=rev
Author:   caen23
Date:     2013-01-12 18:25:21 +0000 (Sat, 12 Jan 2013)
Log Message:
-----------
In some cases (e.g. OS X), CMAKE_THREAD_LIBS_INIT is set to "" when threads are 
available, causing IF(CMAKE_THREAD_LIBS_INIT) to fail even if threads are 
available. This, in turn, causes compilation of libxml/src/threads.c to fail. 
We now check if Threads_FOUND is true, which should be more portable

Modified Paths:
--------------
    brlcad/trunk/src/other/xmltools/libxml/CMakeLists.txt

Modified: brlcad/trunk/src/other/xmltools/libxml/CMakeLists.txt
===================================================================
--- brlcad/trunk/src/other/xmltools/libxml/CMakeLists.txt       2013-01-11 
20:42:38 UTC (rev 54167)
+++ brlcad/trunk/src/other/xmltools/libxml/CMakeLists.txt       2013-01-12 
18:25:21 UTC (rev 54168)
@@ -9,10 +9,10 @@
 ENDIF(ZLIB_LIBRARY)
 FIND_PACKAGE(Threads)
 INCLUDE(CheckIncludeFile)
-IF(CMAKE_THREAD_LIBS_INIT)
+IF(Threads_FOUND)
   CHECK_INCLUDE_FILE(pthread.h HAVE_PTHREAD_H)
   add_definitions(-DLIBXML_THREAD_ENABLED)
-ENDIF(CMAKE_THREAD_LIBS_INIT)
+ENDIF(Threads_FOUND)
 IF(CMAKE_USE_PTHREADS_INIT)
   SET(HAVE_LIBPTHREAD 1)
 ENDIF(CMAKE_USE_PTHREADS_INIT)

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122912
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to