Skip to content

Commit

Permalink
Update R-package/src/cmake/modules/FindLibR.cmake
Browse files Browse the repository at this point in the history
Co-Authored-By: Nikita Titov <[email protected]>
  • Loading branch information
jameslamb and StrikerRUS authored Mar 17, 2020
1 parent 0c53444 commit 7568546
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions R-package/src/cmake/modules/FindLibR.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ if(APPLE)
find_library(LIBR_LIBRARIES R)

if(LIBR_LIBRARIES MATCHES ".*\\.framework")
set(LIBR_HOME "${LIBR_LIBRARIES}/Resources" CACHE PATH "R home directory")
set(LIBR_INCLUDE_DIRS "${LIBR_HOME}/include" CACHE PATH "R include directory")
set(LIBR_EXECUTABLE "${LIBR_HOME}/R" CACHE PATH "R executable")
set(LIBR_LIB_DIR "${LIBR_HOME}/lib" CACHE PATH "R lib directory")
set(LIBR_HOME "${LIBR_LIBRARIES}/Resources")
set(LIBR_INCLUDE_DIRS "${LIBR_HOME}/include")
set(LIBR_EXECUTABLE "${LIBR_HOME}/R")
set(LIBR_LIB_DIR "${LIBR_HOME}/lib")
else()
get_filename_component(_LIBR_LIBRARIES "${LIBR_LIBRARIES}" REALPATH)
get_filename_component(_LIBR_LIBRARIES_DIR "${_LIBR_LIBRARIES}" DIRECTORY)
Expand Down

0 comments on commit 7568546

Please sign in to comment.