[rkward/frameworks] rkward/rbackend: Fix file detection on Windows 64bit

Thomas Friedrichsmeier null at kde.org
Thu May 18 19:15:56 UTC 2017


Git commit ec772dcc8819b2c1b48ae33ca3064af4d60f2ced by Thomas Friedrichsmeier.
Committed on 18/05/2017 at 19:15.
Pushed by tfry into branch 'frameworks'.

Fix file detection on Windows 64bit

M  +3    -0    rkward/rbackend/FindR.cmake

https://commits.kde.org/rkward/ec772dcc8819b2c1b48ae33ca3064af4d60f2ced

diff --git a/rkward/rbackend/FindR.cmake b/rkward/rbackend/FindR.cmake
index 7ab4bb81..e82629f1 100644
--- a/rkward/rbackend/FindR.cmake
+++ b/rkward/rbackend/FindR.cmake
@@ -16,6 +16,9 @@ ENDIF(R_EXECUTABLE-NOTFOUND)
 EXECUTE_PROCESS(
 	COMMAND ${R_EXECUTABLE} "--slave" "--no-save" "-e" "cat(R.version$arch)"
 	OUTPUT_VARIABLE R_ARCH)
+	IF (${R_ARCH} STREQUAL "x86_64")
+		SET (R_ARCH "x64")
+	ENDIF (${R_ARCH} STREQUAL "x86_64")
 MESSAGE (STATUS "R architecture is ${R_ARCH}")
 
 # check R version.



More information about the rkward-tracker mailing list