diff --git a/cmake/QtCreatorAPI.cmake b/cmake/QtCreatorAPI.cmake index bde06c3e476..c17e9a7935b 100644 --- a/cmake/QtCreatorAPI.cmake +++ b/cmake/QtCreatorAPI.cmake @@ -681,6 +681,8 @@ function(add_qtc_test name) ) set_target_properties(${name} PROPERTIES + CXX_VISIBILITY_PRESET hidden + VISIBILITY_INLINES_HIDDEN ON BUILD_RPATH "${_RPATH_BASE}/${_RPATH}" INSTALL_RPATH "${_RPATH_BASE}/${_RPATH}" )