mirror of
https://git.gfz-potsdam.de/naaice/poet.git
synced 2025-12-15 20:38:23 +01:00
chore: Remove unnecessary code in FindRRuntime.cmake
This commit is contained in:
parent
dcd07e4e92
commit
341f850764
@ -24,8 +24,6 @@ else()
|
|||||||
message(FATAL_ERROR "No R runtime found!")
|
message(FATAL_ERROR "No R runtime found!")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
mark_as_advanced(R_INCLUDE_DIR R_LIBRARY R_EXE)
|
|
||||||
|
|
||||||
set(R_LIBRARIES ${R_LIBRARY})
|
set(R_LIBRARIES ${R_LIBRARY})
|
||||||
set(R_INCLUDE_DIRS ${R_INCLUDE_DIR})
|
set(R_INCLUDE_DIRS ${R_INCLUDE_DIR})
|
||||||
|
|
||||||
@ -45,8 +43,6 @@ find_path(R_Rcpp_INCLUDE_DIR Rcpp.h
|
|||||||
HINTS ${RCPP_PATH}
|
HINTS ${RCPP_PATH}
|
||||||
PATH_SUFFIXES include)
|
PATH_SUFFIXES include)
|
||||||
|
|
||||||
mark_as_advanced(R_Rcpp_INCLUDE_DIR)
|
|
||||||
|
|
||||||
list(APPEND R_INCLUDE_DIRS ${R_Rcpp_INCLUDE_DIR})
|
list(APPEND R_INCLUDE_DIRS ${R_Rcpp_INCLUDE_DIR})
|
||||||
|
|
||||||
# find RInside libraries and include path
|
# find RInside libraries and include path
|
||||||
@ -72,8 +68,6 @@ find_path(R_RInside_INCLUDE_DIR RInside.h
|
|||||||
list(APPEND R_LIBRARIES ${R_RInside_LIBRARY})
|
list(APPEND R_LIBRARIES ${R_RInside_LIBRARY})
|
||||||
list(APPEND R_INCLUDE_DIRS ${R_RInside_INCLUDE_DIR})
|
list(APPEND R_INCLUDE_DIRS ${R_RInside_INCLUDE_DIR})
|
||||||
|
|
||||||
mark_as_advanced(R_RInside_LIBRARY R_RInside_INCLUDE_DIR)
|
|
||||||
|
|
||||||
# putting all together into interface library
|
# putting all together into interface library
|
||||||
|
|
||||||
add_library(RRuntime INTERFACE IMPORTED)
|
add_library(RRuntime INTERFACE IMPORTED)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user