Skip to content

Commit

Permalink
build shared libraries by default and hide symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiangreffrath committed Nov 7, 2023
1 parent 09b3c85 commit 92ce281
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,18 @@ if(NOT DEFINED FAAD_BUNDLED_MODE)
# depending on whether or not we are the top-level project.
if(FAAD_PARENT_DIRECTORY)
set(FAAD_BUNDLED_MODE ON)
set(BUILD_SHARED_LIBS OFF)
else()
set(FAAD_BUNDLED_MODE OFF)
set(BUILD_SHARED_LIBS ON)
endif()
endif()
mark_as_advanced(FAAD_BUNDLED_MODE)

if(BUILD_SHARED_LIBS)
set(CMAKE_C_VISIBILITY_PRESET hidden)
endif()

find_library(MATH_LIBRARY m)

include(GNUInstallDirs)
Expand Down

0 comments on commit 92ce281

Please sign in to comment.