From be9708daad8fe5af19c5d4a5d191daed7f36b3bf Mon Sep 17 00:00:00 2001 From: Ryan Curtin Date: Tue, 29 Aug 2023 16:09:48 -0400 Subject: [PATCH] Fix R binding build to include config.hpp. --- src/mlpack/bindings/R/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/mlpack/bindings/R/CMakeLists.txt b/src/mlpack/bindings/R/CMakeLists.txt index 728f9a33e5..454129d25f 100644 --- a/src/mlpack/bindings/R/CMakeLists.txt +++ b/src/mlpack/bindings/R/CMakeLists.txt @@ -436,6 +436,12 @@ macro (post_r_setup) ) endforeach() + # Copy configured config.hpp. + execute_process( + COMMAND ${CMAKE_COMMAND} -E copy + "${CMAKE_BINARY_DIR}/include/mlpack/config-local.hpp" + "${CMAKE_BINARY_DIR}/src/mlpack/bindings/R/mlpack/inst/include/mlpack/config.hpp") + foreach(r_src_file ${R_SRC_FILES}) if ("${r_src_file}" MATCHES "methods/" OR "${r_src_file}" MATCHES "core/" OR