cmake: Restore default visibility

The MODULE_EXPORT and EXPORT macros in libOBS do not correctly mark a function or type as visible on GCC, which results in the newly added flag hiding everything from view, instead of just what should be hidden.
This commit is contained in:
Xaymar 2020-11-05 20:12:57 +01:00 committed by Michael Fabian 'Xaymar' Dirks
parent d36e735bb1
commit 5185c720ea
1 changed files with 2 additions and 2 deletions

View File

@ -173,12 +173,12 @@ elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR CMAKE_CXX_COMPILER_ID STREQUAL
message(STATUS "Applying custom flags for GNU style build.")
# Clang/AppleClang/GNU
# - Don't export by default.
# - Don't export by default. (Temporarily disabled)
# - Enable all and extra warnings.
add_compile_options("-Wall")
add_compile_options("-Wextra")
add_compile_options("-fvisibility=hidden")
# add_compile_options("-fvisibility=hidden")
endif()
# C++ Standard and Extensions