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 f84fcbe commit 4a56334
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ option(STATIC_CRT "Windows specific option that to specify static/dynamic run-ti

project (aws-checksums 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 @@ -112,7 +108,7 @@ file(GLOB CHECKSUMS_COMBINED_SRC
${AWS_ARCH_SRC}
)


aws_set_common_policies()
add_library(${PROJECT_NAME} ${CHECKSUMS_COMBINED_HEADERS} ${CHECKSUMS_COMBINED_SRC})
aws_set_common_properties(${PROJECT_NAME})
aws_prepare_symbol_visibility_args(${PROJECT_NAME} "AWS_CHECKSUMS")
Expand Down

0 comments on commit 4a56334

Please sign in to comment.