Fixed CMake error for newer CMake versions.
@@ -39,7 +39,7 @@ if(R_RSCRIPT_EXECUTABLE)
OUTPUT_VARIABLE R_VERSION
OUTPUT_STRIP_TRAILING_WHITESPACE
)
- string(REGEX REPLACE "[a-zA-Z]|[(].*|[ ]" "" R_VERSION ${R_VERSION})
+ string(REGEX REPLACE "[a-zA-Z]|[(].*|[ ]" "" R_VERSION "${R_VERSION}")
set(R_LIBRARY_DIR "${R_HOME_DIR}/bin/x64")
if("${CMAKE_SIZEOF_VOID_P}" STREQUAL "4")
