Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions cmake/modules/FindR.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,11 @@ if(WIN32 AND R_EXECUTABLE MATCHES "R_EXECUTABLE-NOTFOUND")
if(EXISTS "${RX64PATH}\\${R_VERSIONED_SUBDIR}\\bin\\x64\\Rscript.exe")
set(R_SCRIPT "${RX64PATH}\\${R_VERSIONED_SUBDIR}\\bin\\x64\\Rscript.exe")
endif()
break()
if (R_EXECUTABLE AND R_SCRIPT)
break()
endif()
unset(R_EXECUTABLE)
unset(R_SCRIPT)
endif()
endforeach()
# ...or the 32-bit installation
Expand All @@ -69,7 +73,11 @@ if(WIN32 AND R_EXECUTABLE MATCHES "R_EXECUTABLE-NOTFOUND")
if(EXISTS "${RX86PATH}\\${R_VERSIONED_SUBDIR}\\bin\\x86\\Rscript.exe")
set(R_SCRIPT "${RX86PATH}\\${R_VERSIONED_SUBDIR}\\bin\\x86\\Rscript.exe")
endif()
break()
if (R_EXECUTABLE AND R_SCRIPT)
break()
endif()
unset(R_EXECUTABLE)
unset(R_SCRIPT)
endif()
endforeach()
endif()
Expand Down
Loading