[rkward-cvs] SF.net SVN: rkward:[2954] trunk/rkward/rkward/rbackend/FindR.cmake

tfry at users.sourceforge.net tfry at users.sourceforge.net
Mon Jul 19 12:20:21 UTC 2010


Revision: 2954
          http://rkward.svn.sourceforge.net/rkward/?rev=2954&view=rev
Author:   tfry
Date:     2010-07-19 12:20:20 +0000 (Mon, 19 Jul 2010)

Log Message:
-----------
Fix cmake check for the mac

Modified Paths:
--------------
    trunk/rkward/rkward/rbackend/FindR.cmake

Modified: trunk/rkward/rkward/rbackend/FindR.cmake
===================================================================
--- trunk/rkward/rkward/rbackend/FindR.cmake	2010-07-18 22:49:07 UTC (rev 2953)
+++ trunk/rkward/rkward/rbackend/FindR.cmake	2010-07-19 12:20:20 UTC (rev 2954)
@@ -32,15 +32,15 @@
 
 MESSAGE(STATUS "Looking for R include files")
 IF(NOT R_INCLUDEDIR)
-	IF(WIN32)	# This version of the test will not work with R < 2.9.0, but the other version (in the else part) will not work on windows (and on windows the paths are generally standard, anyway).
+	IF(WIN32 OR APPLE)	# This version of the test will not work with R < 2.9.0, but the other version (in the else part) will not work on windows or apple (but we do not really need to support ancient versions of R, there).
 		EXECUTE_PROCESS(
 			COMMAND ${R_EXECUTABLE} "--slave" "--no-save" "-e" "cat(R.home('include'))"
 			OUTPUT_VARIABLE R_INCLUDEDIR)
-	ELSE(WIN32)
+	ELSE(WIN32 OR APPLE)
 		EXECUTE_PROCESS(
 			COMMAND ${R_EXECUTABLE} CMD sh -c "echo -n $R_INCLUDE_DIR"
 			OUTPUT_VARIABLE R_INCLUDEDIR)
-	ENDIF(WIN32)
+	ENDIF(WIN32 OR APPLE)
 ELSE(NOT R_INCLUDEDIR)
 	MESSAGE(STATUS "Location specified by user")
 ENDIF(NOT R_INCLUDEDIR)


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




More information about the rkward-tracker mailing list