diff options
author | Cristian Adam <cristian.adam@qt.io> | 2020-09-16 19:53:32 +0200 |
---|---|---|
committer | Cristian Adam <cristian.adam@qt.io> | 2020-09-21 10:45:02 +0000 |
commit | de580388bb90c72c85b7dbf37065ff6fa7a44eb5 (patch) | |
tree | 7fb7a38369ef93ccad2e1c59ed4c1c2329abd2da | |
parent | c8a35714263baf01d33d5885993cd2a3b5150fe7 (diff) |
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 <eike.ziller@qt.io>
-rw-r--r-- | cmake/QtCreatorAPI.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cmake/QtCreatorAPI.cmake b/cmake/QtCreatorAPI.cmake index bde06c3e47..c17e9a7935 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}" ) |