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 2eccff7 commit 22214de
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-mqtt C)

if (POLICY CMP0069)
cmake_policy(SET CMP0069 NEW) # Enable LTO/IPO if available in the compiler, see AwsCFlags
endif()

option(ASSERT_LOCK_HELD "Enable ASSERT_SYNCED_DATA_LOCK_HELD for checking thread issue" OFF)
if (ASSERT_LOCK_HELD)
add_definitions(-DASSERT_LOCK_HELD)
Expand Down Expand Up @@ -72,6 +68,7 @@ file(GLOB MQTT_SRC
${AWS_MQTT_SRC}
)

aws_set_common_policies()
add_library(${PROJECT_NAME} ${MQTT_HEADERS} ${MQTT_SRC})
aws_set_common_properties(${PROJECT_NAME})
aws_prepare_symbol_visibility_args(${PROJECT_NAME} "AWS_MQTT")
Expand Down

0 comments on commit 22214de

Please sign in to comment.