Description: Upstream_03f7f617a6306088562b32143f0d2f665ebe798f_R_install_CMakeLists_txt_relative
 .
 lightgbm (2.2.1+debian-1) unstable; urgency=medium
 .
   * New upstream release.
Author: Adam Cecile <acecile@le-vert.net>

---
Origin: upstream, https://github.com/Microsoft/LightGBM/pull/1679
Bug: https://github.com/Microsoft/LightGBM/issues/1678
Forwarded: not-needed
Reviewed-By: LightGBM Upstream
Last-Update: 2018-10-23

--- lightgbm-2.2.1+debian.orig/R-package/src/install.libs.R
+++ lightgbm-2.2.1+debian/R-package/src/install.libs.R
@@ -16,7 +16,10 @@ if (!(R_int_UUID == "0310d4b8-ccb1-4bb8-
 }
 
 # Move in CMakeLists.txt
-if (!file.copy("../inst/bin/CMakeLists.txt", "CMakeLists.txt", overwrite = TRUE)){
+if (!file.copy(file.path(R_PACKAGE_SOURCE, "../CMakeLists.txt", fsep = "/"),
+               file.path(R_PACKAGE_SOURCE, "CMakeLists.txt", fsep = "/"),
+               overwrite = TRUE)
+    ){
   stop("Copying CMakeLists failed")
 }
 
