Skip to content

Commit

Permalink
Update CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
msupernaw committed Oct 11, 2023
1 parent 711aabe commit 58ae871
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ MESSAGE(STATUS "R_EXECUTABLE is ${R_EXECUTABLE}")



EXECUTE_PROCESS(
COMMAND ${R_EXECUTABLE} "--slave" "--no-save" "-e" "cat(R.home())"
OUTPUT_VARIABLE R_HOME
OUTPUT_STRIP_TRAILING_WHITESPACE)
execute_process(
COMMAND ${R_EXECUTABLE} "--slave" "--no-save" "-e" "cat(Sys.getenv('R_HOME'))"
OUTPUT_VARIABLE R_HOME
)

MESSAGE(STATUS "R_HOME is ${R_HOME}")

Expand Down

0 comments on commit 58ae871

Please sign in to comment.