From e3e7e7ae1c17c019a9d07f2f0cffd56373c28d48 Mon Sep 17 00:00:00 2001 From: Igor Abdrakhimov Date: Tue, 10 Dec 2024 11:28:22 -0800 Subject: [PATCH 1/2] Fix dependency failure on old cmake versions --- cmake/AwsPrebuildDependency.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/AwsPrebuildDependency.cmake b/cmake/AwsPrebuildDependency.cmake index e9bdbb6f3..4c196c66b 100644 --- a/cmake/AwsPrebuildDependency.cmake +++ b/cmake/AwsPrebuildDependency.cmake @@ -36,8 +36,8 @@ function(aws_prebuild_dependency) list(APPEND cmakeCommand ${cmakeOptionalVariables}) # The following variables should always be used. - list(APPEND cmakeCommand -B${depBinaryDir}) list(APPEND cmakeCommand ${AWS_PREBUILD_SOURCE_DIR}) + list(APPEND cmakeCommand -B${depBinaryDir}) list(APPEND cmakeCommand -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}) list(APPEND cmakeCommand -DCMAKE_PREFIX_PATH=${ESCAPED_PREFIX_PATH}) list(APPEND cmakeCommand -DCMAKE_INSTALL_PREFIX=${depInstallDir}) From 449b62a5bc431f0140e54aebad054ee44f1683a9 Mon Sep 17 00:00:00 2001 From: Igor Abdrakhimov Date: Tue, 10 Dec 2024 15:30:32 -0800 Subject: [PATCH 2/2] Update cmake/AwsPrebuildDependency.cmake Co-authored-by: Michael Graeb --- cmake/AwsPrebuildDependency.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/AwsPrebuildDependency.cmake b/cmake/AwsPrebuildDependency.cmake index 4c196c66b..6e2192f10 100644 --- a/cmake/AwsPrebuildDependency.cmake +++ b/cmake/AwsPrebuildDependency.cmake @@ -36,7 +36,7 @@ function(aws_prebuild_dependency) list(APPEND cmakeCommand ${cmakeOptionalVariables}) # The following variables should always be used. - list(APPEND cmakeCommand ${AWS_PREBUILD_SOURCE_DIR}) + list(APPEND cmakeCommand -H${AWS_PREBUILD_SOURCE_DIR}) list(APPEND cmakeCommand -B${depBinaryDir}) list(APPEND cmakeCommand -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}) list(APPEND cmakeCommand -DCMAKE_PREFIX_PATH=${ESCAPED_PREFIX_PATH})