From 1e087ec21b326a390ad2e93d684d165c1afbaf35 Mon Sep 17 00:00:00 2001 From: SergeyRyabinin Date: Wed, 19 Jul 2023 21:21:56 +0000 Subject: [PATCH] set AWSSDK_INSTALL_AS_SHARED_LIBS in parent scope where it is actually referenced later --- cmake/setup_cmake_find_module.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/setup_cmake_find_module.cmake b/cmake/setup_cmake_find_module.cmake index f5f147a0f49..cf322101930 100644 --- a/cmake/setup_cmake_find_module.cmake +++ b/cmake/setup_cmake_find_module.cmake @@ -13,8 +13,8 @@ write_basic_package_version_file( file(APPEND "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}/${PROJECT_NAME}ConfigVersion.cmake" - "set(AWSSDK_INSTALL_AS_SHARED_LIBS ${BUILD_SHARED_LIBS})\n" - "set(AWSSDK_CRT_INSTALL_AS_SHARED_LIBS ${CRT_BUILD_SHARED_LIBS})\n") + "set(AWSSDK_INSTALL_AS_SHARED_LIBS ${BUILD_SHARED_LIBS} PARENT_SCOPE)\n" + "set(AWSSDK_CRT_INSTALL_AS_SHARED_LIBS ${CRT_BUILD_SHARED_LIBS} PARENT_SCOPE)\n") file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}/platformDeps.cmake"