mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-12-29 11:01:23 +00:00
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:
parent
d36e735bb1
commit
5185c720ea
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue