Skip to content

Commit

Permalink
hard-coding
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslamb committed Apr 19, 2020
1 parent 05c59f4 commit fdd5724
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion R-package/src/cmake/modules/FindLibR.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,12 @@ find_library(
HINTS "${CMAKE_CURRENT_BINARY_DIR}" "${LIBR_HOME}/lib" "${LIBR_HOME}/bin/${R_ARCH}" "${LIBR_HOME}/bin" "${LIBR_LIBRARIES}"
)

# set (LIBR_CORE_LIBRARY ${LIBR_HOME}/bin/${R_ARCH}/R.dll CACHE PATH "R core shared library")
if (NOT LIBR_CORE_LIBRARY)
message(STATUS "LIBR_CORE_LIBRARY still not found, trying hard-coding")
set (LIBR_CORE_LIBRARY ${LIBR_HOME}/bin/${R_ARCH}/R.dll)
else()
message(STATUS "LIBR_CORE_LIBRARYwas found by find_library()")
endif()

set(LIBR_CORE_LIBRARY ${LIBR_CORE_LIBRARY} CACHE PATH "R core shared library")

Expand Down

0 comments on commit fdd5724

Please sign in to comment.