Revision: 41152
http://brlcad.svn.sourceforge.net/brlcad/?rev=41152&view=rev
Author: starseeker
Date: 2010-10-28 17:10:27 +0000 (Thu, 28 Oct 2010)
Log Message:
-----------
Duplicate the check for Darwin version.
Modified Paths:
--------------
brlcad/branches/cmake/src/other/tcl/CMakeLists.txt
Modified: brlcad/branches/cmake/src/other/tcl/CMakeLists.txt
===================================================================
--- brlcad/branches/cmake/src/other/tcl/CMakeLists.txt 2010-10-28 16:55:29 UTC
(rev 41151)
+++ brlcad/branches/cmake/src/other/tcl/CMakeLists.txt 2010-10-28 17:10:27 UTC
(rev 41152)
@@ -262,7 +262,14 @@
ENDIF(NOT HAVE_UNAME)
# Should be checking for early Darwin version here - realpath
# is not threadsafe prior to Darwin 7
-CHECK_FUNCTION_EXISTS_D(realpath HAVE_REALPATH)
+CHECK_FUNCTION_EXISTS(realpath HAVE_REALPATH)
+IF(${CMAKE_SYSTEM_NAME} MATCHES "^Darwin$" AND TCL_THREADS AND HAVE_REALPATH)
+ STRING(REGEX REPLACE "\\..*" "" CMAKE_SYSTEM_MAJOR_VERSION
${CMAKE_SYSTEM_VERSION})
+ IF (${CMAKE_SYSTEM_MAJOR_VERSION} LESS 7)
+ MESSAGE("realpath is not threadsafe in Darwin versions prior to
7, disabling")
+ SET(HAVE_REALPATH)
+ ENDIF (${CMAKE_SYSTEM_MAJOR_VERSION} LESS 7)
+ENDIF(${CMAKE_SYSTEM_NAME} MATCHES "^Darwin$" AND TCL_THREADS AND
HAVE_REALPATH)
IF(NOT HAVE_REALPATH)
SET(TCL_CFLAGS "${TCL_CFLAGS} -DNO_REALPATH=1")
ENDIF(NOT HAVE_REALPATH)
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits