From de580388bb90c72c85b7dbf37065ff6fa7a44eb5 Mon Sep 17 00:00:00 2001 From: Cristian Adam Date: Wed, 16 Sep 2020 19:53:32 +0200 Subject: CMake Build: Enable PCH for tests Because the tests were missing the visibility flags, and PCH targets that didn't have the visibility flags were skipped, tests were build without PCH. Change-Id: I56ddc81fadcb9e1004032a7e6096ea2c0a480a19 Reviewed-by: Eike Ziller --- cmake/QtCreatorAPI.cmake | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cmake') 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}" ) -- cgit v1.2.3