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 f36d016 commit 7f9ebba
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-compression C)

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

if (DEFINED CMAKE_PREFIX_PATH)
file(TO_CMAKE_PATH "${CMAKE_PREFIX_PATH}" CMAKE_PREFIX_PATH)
endif()
Expand Down Expand Up @@ -59,6 +55,7 @@ file(GLOB COMPRESSION_SRC
${AWS_COMPRESSION_SRC}
)

aws_set_common_policies()
add_library(${PROJECT_NAME} ${LIBTYPE} ${COMPRESSION_HEADERS} ${COMPRESSION_SRC})
aws_set_common_properties(${PROJECT_NAME})
aws_prepare_symbol_visibility_args(${PROJECT_NAME} "AWS_COMPRESSION")
Expand Down

0 comments on commit 7f9ebba

Please sign in to comment.