Skip to content

Commit bd01d37

Browse files
committed
cmake: Also set -fvisibility-inlines-hidden, if available
1 parent 650fd6d commit bd01d37

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ endfunction()
162162
# Set default symbol visibility to 'hidden'
163163
if(JSONCPP_VISIBILITY_HIDDEN)
164164
CxxAppendCompilerFlag("-fvisibility=hidden")
165+
CxxAppendCompilerFlag("-fvisibility-inlines-hidden")
165166
endif()
166167

167168
find_program(CCACHE_FOUND ccache)

0 commit comments

Comments
 (0)