From 70ec6a2f6aaa022a744c9c11e0215e9799d58658 Mon Sep 17 00:00:00 2001 From: Igor Abdrakhimov Date: Fri, 8 Nov 2024 14:38:48 -0800 Subject: [PATCH] Add CMAKE_C_FLAGS, remove COMMAND_ECHO --- cmake/AwsPrebuildDependency.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmake/AwsPrebuildDependency.cmake b/cmake/AwsPrebuildDependency.cmake index 71cb7eacc..72a7901e5 100644 --- a/cmake/AwsPrebuildDependency.cmake +++ b/cmake/AwsPrebuildDependency.cmake @@ -44,16 +44,18 @@ function(aws_prebuild_dependency) list(APPEND cmakeCommand -DCMAKE_INSTALL_PREFIX=${depInstallDir}) list(APPEND cmakeCommand -DCMAKE_INSTALL_RPATH=${CMAKE_INSTALL_RPATH}) list(APPEND cmakeCommand -DBUILD_SHARED_LIBS=${BUILD_SHARED_LIBS}) + list(APPEND cmakeCommand -DCMAKE_C_FLAGS=${CMAKE_C_FLAGS}) if (CMAKE_TOOLCHAIN_FILE) list(APPEND cmakeCommand -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE}) endif() + message(STATUS "cmake command for dependency ${AWS_PREBUILD_DEPENDENCY_NAME}: ${cmakeCommand}") + # Configure dependency project. execute_process( COMMAND ${cmakeCommand} WORKING_DIRECTORY ${depBinaryDir} RESULT_VARIABLE result - COMMAND_ECHO STDOUT ) if (NOT ${result} EQUAL 0)