Skip to content

Commit 275af70

Browse files
committed
Fix Exception catch on user code.
1 parent ea611e6 commit 275af70

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

CMakeLists.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,12 @@ else()
183183
# Note: setting target property CXX_VISIBILITY did not work for
184184
# object libraries that we use to build the connector.
185185

186-
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
187-
add_compile_options(-fvisibility=hidden)
186+
if(CMAKE_COMPILER_IS_GNUCXX)
187+
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
188+
add_compile_options(-fvisibility-ms-compat)
189+
elseif()
190+
add_compile_options(-fvisibility=hidden)
191+
endif()
188192
endif()
189193

190194
endif()

0 commit comments

Comments
 (0)