From 6b6849b001704bf292837d280dfd78934adcf12c Mon Sep 17 00:00:00 2001 From: William Hicks Date: Mon, 14 Mar 2022 15:18:44 -0400 Subject: [PATCH] Correct xgboost-config directory for inclusion in other projects (#7730) --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 339d82697..0251f2d9d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -304,7 +304,7 @@ write_basic_package_version_file( COMPATIBILITY AnyNewerVersion) install( FILES - ${CMAKE_BINARY_DIR}/cmake/xgboost-config.cmake + ${CMAKE_CURRENT_BINARY_DIR}/cmake/xgboost-config.cmake ${CMAKE_BINARY_DIR}/cmake/xgboost-config-version.cmake DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/xgboost)