Skip to content

Commit

Permalink
Default symbol visibility to hidden in static libs too
Browse files Browse the repository at this point in the history
  • Loading branch information
graebm committed Aug 14, 2024
1 parent be23f82 commit 615a395
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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)
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit 615a395

Please sign in to comment.