Skip to content

Commit

Permalink
link to R in RHOME
Browse files Browse the repository at this point in the history
  • Loading branch information
theAeon committed Feb 15, 2024
1 parent 0f8e81a commit 21a0c87
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ else()
endif()
set_target_properties(RcppPlanc PROPERTIES PREFIX "")
if(APPLE)
target_link_libraries(RcppPlanc PRIVATE "-framework R")
set_target_properties(RcppPlanc PROPERTIES SUFFIX ".so")
endif()
target_include_directories(RcppPlanc
Expand Down Expand Up @@ -155,6 +154,8 @@ FetchContent_Declare(
FetchContent_MakeAvailable(HighFive)
if(WIN32)
target_link_libraries(RcppPlanc PRIVATE "${R_HOME}/bin/x64/R.dll")
else()
target_link_libraries(RcppPlanc PRIVATE "${R_HOME}/lib/libR.so")
endif()
target_link_libraries(RcppPlanc PRIVATE ${BLAS_LIBRARIES} ${LAPACK_LIBRARIES} HighFive hw_detect)
#target_include_directories(RcppPlanc BEFORE PRIVATE ${HighFive_BINARY_DIR}/include)
Expand Down

0 comments on commit 21a0c87

Please sign in to comment.