From 615a39528be408d7b0fb5ebdc884f16846fe20bc Mon Sep 17 00:00:00 2001 From: Michael Graeb Date: Wed, 14 Aug 2024 12:01:54 -0700 Subject: [PATCH 1/3] Default symbol visibility to hidden in static libs too --- CMakeLists.txt | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 931e2806..40d220d5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,10 +1,6 @@ cmake_minimum_required(VERSION 3.1) project(aws-c-iot C) -if (POLICY CMP0069) - cmake_policy(SET CMP0069 NEW) # Enable LTO/IPO if available in the compiler, see AwsCFlags -endif() - option(USE_EXTERNAL_DEPS_SOURCES "Use dependencies provided by add_subdirectory command" OFF) if (DEFINED CMAKE_PREFIX_PATH) @@ -90,6 +86,7 @@ file(GLOB IOT_SRC ${AWS_IOT_PRIV_HEADERS} ) +aws_set_common_policies() add_library(${PROJECT_NAME} ${IOT_HEADERS} ${IOT_SRC}) aws_set_common_properties(${PROJECT_NAME}) aws_prepare_symbol_visibility_args(${PROJECT_NAME} "AWS_IOTDEVICE") From 560afb5aab867bf476f64471ea56e37d0b5a73ca Mon Sep 17 00:00:00 2001 From: Michael Graeb Date: Mon, 19 Aug 2024 13:18:44 -0700 Subject: [PATCH 2/3] Update required CMake --- CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 40d220d5..0b873a83 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.1) +cmake_minimum_required(VERSION 3.13) project(aws-c-iot C) option(USE_EXTERNAL_DEPS_SOURCES "Use dependencies provided by add_subdirectory command" OFF) @@ -86,7 +86,6 @@ file(GLOB IOT_SRC ${AWS_IOT_PRIV_HEADERS} ) -aws_set_common_policies() add_library(${PROJECT_NAME} ${IOT_HEADERS} ${IOT_SRC}) aws_set_common_properties(${PROJECT_NAME}) aws_prepare_symbol_visibility_args(${PROJECT_NAME} "AWS_IOTDEVICE") From 41737b0b0fac405461b87c991a8785502a98001d Mon Sep 17 00:00:00 2001 From: Waqar Ahmed Khan Date: Fri, 18 Oct 2024 10:38:51 -0700 Subject: [PATCH 3/3] Update cmake_minimum_required to 3.9 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0b873a83..f6da225c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.13) +cmake_minimum_required(VERSION 3.9) project(aws-c-iot C) option(USE_EXTERNAL_DEPS_SOURCES "Use dependencies provided by add_subdirectory command" OFF)